summaryrefslogtreecommitdiffstats
path: root/target/linux/mcs814x/files-3.3/drivers/char/hw_random
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-09-08 09:51:05 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-09-08 09:51:05 +0000
commit08b17128a1856c8ba1f7c7286fdba2d993564cff (patch)
tree61a81d8d65835646b47deeba086f086a431e6a4e /target/linux/mcs814x/files-3.3/drivers/char/hw_random
parent555155f8ea01c68f86eb246374942db03c126622 (diff)
[mcs814x] use the recommended ARM I/O accessors
use {read,write}l_relaxed instead of the plain __raw_{read,write}l variants. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33330 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mcs814x/files-3.3/drivers/char/hw_random')
-rw-r--r--target/linux/mcs814x/files-3.3/drivers/char/hw_random/mcs814x-rng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/mcs814x/files-3.3/drivers/char/hw_random/mcs814x-rng.c b/target/linux/mcs814x/files-3.3/drivers/char/hw_random/mcs814x-rng.c
index cccab07b2..b1e95810d 100644
--- a/target/linux/mcs814x/files-3.3/drivers/char/hw_random/mcs814x-rng.c
+++ b/target/linux/mcs814x/files-3.3/drivers/char/hw_random/mcs814x-rng.c
@@ -28,7 +28,7 @@ static int mcs814x_rng_data_read(struct hwrng *rng, u32 *buffer)
{
struct mcs814x_rng_priv *priv = (struct mcs814x_rng_priv *)rng->priv;
- *buffer = __raw_readl(priv->regs + RND);
+ *buffer = readl_relaxed(priv->regs + RND);
return 4;
}