]> git.baikalelectronics.ru Git - kernel.git/commit
hwrng: OMAP: remove SoC restrictions from driver registration
authorPaul Walmsley <paul@pwsan.com>
Sun, 23 Sep 2012 23:28:27 +0000 (17:28 -0600)
committerPaul Walmsley <paul@pwsan.com>
Sun, 23 Sep 2012 23:28:27 +0000 (17:28 -0600)
commita333d20a8663c438cd4d6faae90470d037b7d0fe
treed3a0e62aca6904d839c846f7a94e2d356118ba1f
parent4ea1b606c8dd509012d29870ac6760da18342e1a
hwrng: OMAP: remove SoC restrictions from driver registration

Remove the SoC restriction code from the OMAP RNG driver.  The
integration code in arch/arm/*omap* should handle this.  The device
shouldn't be created if it doesn't exist on the currently-booted SoC.

This allows us to remove some OMAP-specific cpu_is_omap*() calls from
the driver.  Also, if other OMAP chips have RNGs that can be used
by Linux, there will be no need to modify the driver.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/mach-omap1/devices.c
drivers/char/hw_random/omap-rng.c