summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2016-06-08 19:31:09 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2016-06-13 17:47:50 +0800
commit5ad67c14510b74f3b705bbe6413287a0943e5800 (patch)
tree6e5dcff5d76deea5611e02d6088dfa3c64b58487 /drivers
parent773b197972bebcbd9eb3cd4d2688a68619eef85c (diff)
downloadlinux-5ad67c14510b74f3b705bbe6413287a0943e5800.tar.gz
linux-5ad67c14510b74f3b705bbe6413287a0943e5800.tar.bz2
linux-5ad67c14510b74f3b705bbe6413287a0943e5800.zip
hwrng: exynos - fixup IO accesors
The __raw IO functions are not endian safe, so use the readl_relaxed and writel_relaxed versions of these. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/hw_random/exynos-rng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/hw_random/exynos-rng.c b/drivers/char/hw_random/exynos-rng.c
index ed44561ea647..23d358553b21 100644
--- a/drivers/char/hw_random/exynos-rng.c
+++ b/drivers/char/hw_random/exynos-rng.c
@@ -45,12 +45,12 @@ struct exynos_rng {
static u32 exynos_rng_readl(struct exynos_rng *rng, u32 offset)
{
- return __raw_readl(rng->mem + offset);
+ return readl_relaxed(rng->mem + offset);
}
static void exynos_rng_writel(struct exynos_rng *rng, u32 val, u32 offset)
{
- __raw_writel(val, rng->mem + offset);
+ writel_relaxed(val, rng->mem + offset);
}
static int exynos_rng_configure(struct exynos_rng *exynos_rng)