diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2011-06-08 09:05:51 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-06-29 19:44:01 -0400 |
commit | 033590fc9d38bb82b904439daada78f930c070db (patch) | |
tree | 7ecb229a5b81098c3be8095f7c32d1a9442986b2 /drivers | |
parent | 2725ae17591bf771608fe62c54f7b2badcf7492f (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/hw_random/timeriomem-rng.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/hw_random/timeriomem-rng.c b/drivers/char/hw_random/timeriomem-rng.c index a94e930575f2..a8428e6f64a9 100644 --- a/drivers/char/hw_random/timeriomem-rng.c +++ b/drivers/char/hw_random/timeriomem-rng.c | |||
@@ -100,8 +100,7 @@ static int __devinit timeriomem_rng_probe(struct platform_device *pdev) | |||
100 | 100 | ||
101 | timeriomem_rng_data = pdev->dev.platform_data; | 101 | timeriomem_rng_data = pdev->dev.platform_data; |
102 | 102 | ||
103 | timeriomem_rng_data->address = ioremap(res->start, | 103 | timeriomem_rng_data->address = ioremap(res->start, resource_size(res)); |
104 | res->end - res->start + 1); | ||
105 | if (!timeriomem_rng_data->address) | 104 | if (!timeriomem_rng_data->address) |
106 | return -EIO; | 105 | return -EIO; |
107 | 106 | ||