Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336094
b: refs/heads/master
c: 553da85
h: refs/heads/master
v: v3
  • Loading branch information
Krzysztof Hałasa authored and Jason Cooper committed Nov 22, 2012
1 parent d1ce05e commit e9ef78d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 87ba5c6a313b4da5639a18d7796e51483ededd17
refs/heads/master: 553da857b1b917e27817b923ea2c786313620845
6 changes: 3 additions & 3 deletions trunk/drivers/char/hw_random/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ config HW_RANDOM_VIA
If unsure, say Y.

config HW_RANDOM_IXP4XX
tristate "Intel IXP4xx NPU HW Random Number Generator support"
tristate "Intel IXP4xx NPU HW Pseudo-Random Number Generator support"
depends on HW_RANDOM && ARCH_IXP4XX
default HW_RANDOM
---help---
This driver provides kernel-side support for the Random
Number Generator hardware found on the Intel IXP4xx NPU.
This driver provides kernel-side support for the Pseudo-Random
Number Generator hardware found on the Intel IXP45x/46x NPU.

To compile this driver as a module, choose M here: the
module will be called ixp4xx-rng.
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/char/hw_random/ixp4xx-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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");

0 comments on commit e9ef78d

Please sign in to comment.