OSDN Git Service

hw_random: ixp4xx: Turn into a module
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 11 May 2021 12:15:42 +0000 (14:15 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Jun 2021 13:31:05 +0000 (15:31 +0200)
commit854a004305c202d85e2536459187bc7ab5edef31
tree2329b4f6d36ef6609f2f3dc3992bb555483d0e23
parent479dfb6d56020548161ecfd3ba0b3770ac5f4bc2
hw_random: ixp4xx: Turn into a module

Instead of just initializing always, which will invariably
create problems on multiplatform builds, turn this driver into
a module and pass a resource with the memory location.
The device only exist on the IXP46x so we only register
the device for the IXP46x SoC.

Cc: Deepak Saxena <dsaxena@plexity.net>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ixp4xx/common.c
drivers/char/hw_random/ixp4xx-rng.c