Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ad67c14 authored by Ben Dooks's avatar Ben Dooks Committed by Herbert Xu
Browse files

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: default avatarBen Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 773b1979
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)