diff --git a/drivers/char/hw_random/msm_rng.c b/drivers/char/hw_random/msm_rng.c index a3bde2d7ed69..f54ccdab20cd 100644 --- a/drivers/char/hw_random/msm_rng.c +++ b/drivers/char/hw_random/msm_rng.c @@ -113,8 +113,8 @@ int msm_rng_direct_read(struct msm_rng_device *msm_rng_dev, void *data) struct platform_device *pdev; void __iomem *base; size_t currsize = 0; - unsigned long val; - unsigned long *retdata = data; + u32 val; + u32 *retdata = data; int ret; pdev = msm_rng_dev->pdev; @@ -159,8 +159,8 @@ static int msm_rng_drbg_read(struct hwrng *rng, void __iomem *base; size_t maxsize; size_t currsize = 0; - unsigned long val; - unsigned long *retdata = data; + u32 val; + u32 *retdata = data; int ret, ret1; msm_rng_dev = (struct msm_rng_device *)rng->priv;