diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2010-03-23 22:22:13 +0300 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2012-11-22 07:35:39 +0400 |
commit | 553da857b1b917e27817b923ea2c786313620845 (patch) | |
tree | 647c231f16889b7e96187ce75eb0e83ba6a49c14 /drivers/char/hw_random/ixp4xx-rng.c | |
parent | 87ba5c6a313b4da5639a18d7796e51483ededd17 (diff) | |
download | linux-553da857b1b917e27817b923ea2c786313620845.tar.xz |
IXP4xx: HW pseudo-random generator is available on IXP45x/46x only.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'drivers/char/hw_random/ixp4xx-rng.c')
-rw-r--r-- | drivers/char/hw_random/ixp4xx-rng.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/char/hw_random/ixp4xx-rng.c b/drivers/char/hw_random/ixp4xx-rng.c index 263567f5f392..beec1627db3c 100644 --- a/drivers/char/hw_random/ixp4xx-rng.c +++ b/drivers/char/hw_random/ixp4xx-rng.c @@ -45,6 +45,9 @@ static int __init ixp4xx_rng_init(void) void __iomem * rng_base; int err; + if (!cpu_is_ixp46x()) /* includes IXP455 */ + return -ENOSYS; + rng_base = ioremap(0x70002100, 4); if (!rng_base) return -ENOMEM; @@ -68,5 +71,5 @@ module_init(ixp4xx_rng_init); module_exit(ixp4xx_rng_exit); MODULE_AUTHOR("Deepak Saxena <dsaxena@plexity.net>"); -MODULE_DESCRIPTION("H/W Random Number Generator (RNG) driver for IXP4xx"); +MODULE_DESCRIPTION("H/W Pseudo-Random Number Generator (RNG) driver for IXP45x/46x"); MODULE_LICENSE("GPL"); |