hw_random: timeriomem-rng: use resource_size
PATCH 1/1 hw_random: timeriomem-rng: use resource_size
Signed-off-by H Hartley Sweeten <[email protected]>
Cc Matt Mackall <[email protected]>
Cc Herbert Xu <[email protected]>
---
drivers/char/hw_random/timeriomem-rng.c +1 -2
@@ -100,8 +100,7 @@ static int __devinit timeriomem_rng_probe(struct platform_device *pdev) timeriomem_rng_data = pdev->dev.platform_data; - timeriomem_rng_data->address =ioremap (res->start, - res->end - res->start +1 ); + timeriomem_rng_data->address =ioremap (res->start,resource_size (res));if (!timeriomem_rng_data->address)return -EIO ;
Quoted 3 lines · H Hartley Sweeten
Signed-off-by H Hartley Sweeten <[email protected]>Cc Matt Mackall <[email protected]>Cc Herbert Xu <[email protected]>
Looks good to me.
Acked-by Matt Mackall <[email protected]>
Quoted 16 lines
---
drivers/char/hw_random/timeriomem-rng.c +1
-2@@ -100,8 +100,7 @@ static int __devinit timeriomem_rng_probe(struct platform_device *pdev) timeriomem_rng_data = pdev->dev.platform_data; - timeriomem_rng_data->address =ioremap (res->start, - res->end - res->start +1 ); + timeriomem_rng_data->address =ioremap (res->start,resource_size (res));if (!timeriomem_rng_data->address)return -EIO ;
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Quoted 8 lines · Matt Mackall
Quoted 3 lines · H Hartley Sweeten
Signed-off-by H Hartley Sweeten <[email protected]>Cc Matt Mackall <[email protected]>Cc Herbert Xu <[email protected]>Looks good to me.
Acked-by Matt Mackall <[email protected]>
Also applied. Thanks!
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt