diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2009-12-04 12:24:04 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2009-12-23 14:53:04 -0500 |
commit | b782a563758ac963c794d9fbaaff494140c28fd6 (patch) | |
tree | 8e1ac3537fc1f6e0ab47e82892ae941e563fd8ab /drivers/watchdog/adx_wdt.c | |
parent | 4946f8353da9d3038e2a9d0295d5dfeee4cee5c5 (diff) |
[WATCHDOG] use resource_size()
Use resource_size().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Kevin Hilman <khilman@ti.deeprootsystems.com>
Cc: Ulrik Bech Hald <ubh@ti.com>
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Ming Lei <tom.leiming@gmail.com>
Cc: Vincent Sanders <support@simtec.co.uk>
Acked-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/watchdog/adx_wdt.c')
-rw-r--r-- | drivers/watchdog/adx_wdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/watchdog/adx_wdt.c b/drivers/watchdog/adx_wdt.c index 9c6594473d3b..9d7d155364f8 100644 --- a/drivers/watchdog/adx_wdt.c +++ b/drivers/watchdog/adx_wdt.c | |||
@@ -242,14 +242,14 @@ static int __devinit adx_wdt_probe(struct platform_device *pdev) | |||
242 | } | 242 | } |
243 | 243 | ||
244 | res = devm_request_mem_region(&pdev->dev, res->start, | 244 | res = devm_request_mem_region(&pdev->dev, res->start, |
245 | res->end - res->start + 1, res->name); | 245 | resource_size(res), res->name); |
246 | if (!res) { | 246 | if (!res) { |
247 | dev_err(&pdev->dev, "cannot request I/O memory region\n"); | 247 | dev_err(&pdev->dev, "cannot request I/O memory region\n"); |
248 | return -ENXIO; | 248 | return -ENXIO; |
249 | } | 249 | } |
250 | 250 | ||
251 | wdt->base = devm_ioremap_nocache(&pdev->dev, res->start, | 251 | wdt->base = devm_ioremap_nocache(&pdev->dev, res->start, |
252 | res->end - res->start + 1); | 252 | resource_size(res)); |
253 | if (!wdt->base) { | 253 | if (!wdt->base) { |
254 | dev_err(&pdev->dev, "cannot remap I/O memory region\n"); | 254 | dev_err(&pdev->dev, "cannot remap I/O memory region\n"); |
255 | return -ENXIO; | 255 | return -ENXIO; |