mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue