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>
This commit is contained in:
parent
773b197972
commit
5ad67c1451
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user