On Tue, May 11, 2021 at 03:29:26PM +0200, Linus Walleij wrote: > 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@xxxxxxxxxxx> > Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx> > --- > The idea is to apply this through the ARM SoC tree along > with other IXP4xx refactorings. > Please tell me if you prefer another solution. > --- > arch/arm/mach-ixp4xx/common.c | 24 ++++++++++++++++++- > drivers/char/hw_random/ixp4xx-rng.c | 37 +++++++++++++---------------- > 2 files changed, 40 insertions(+), 21 deletions(-) Acked-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt