Skip to content

Commit

Permalink
hwrng: exynos - fixup IO accesors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Dooks authored and Herbert Xu committed Jun 13, 2016
1 parent 773b197 commit 5ad67c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/hw_random/exynos-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5ad67c1

Please sign in to comment.