hwrng: timeriomem - use resource_size
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Matt Mackall <mpm@selenic.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
2725ae1759
commit
033590fc9d
1 changed files with 1 additions and 2 deletions
|
@ -100,8 +100,7 @@ static int __devinit timeriomem_rng_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
timeriomem_rng_data = pdev->dev.platform_data;
|
timeriomem_rng_data = pdev->dev.platform_data;
|
||||||
|
|
||||||
timeriomem_rng_data->address = ioremap(res->start,
|
timeriomem_rng_data->address = ioremap(res->start, resource_size(res));
|
||||||
res->end - res->start + 1);
|
|
||||||
if (!timeriomem_rng_data->address)
|
if (!timeriomem_rng_data->address)
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue