hwrng: exynos - fixup IO accesors
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 8 Jun 2016 18:31:09 +0000 (19:31 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 13 Jun 2016 09:47:50 +0000 (17:47 +0800)
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>
drivers/char/hw_random/exynos-rng.c

index ed44561ea64755e3a02ad0834a4757171c4e10a3..23d358553b21f1af0835eaf4ca067e0997b20f74 100644 (file)
@@ -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)