From: Ben Dooks Date: Wed, 8 Jun 2016 18:31:09 +0000 (+0100) Subject: hwrng: exynos - fixup IO accesors X-Git-Tag: v4.14-rc1~2841^2~137 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ad67c14510b74f3b705bbe6413287a0943e5800;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/char/hw_random/exynos-rng.c b/drivers/char/hw_random/exynos-rng.c index ed44561..23d3585 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)