diff options
Diffstat (limited to 'drivers/watchdog/s3c2410_wdt.c')
-rw-r--r-- | drivers/watchdog/s3c2410_wdt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index c1a221cbeae4..ee03135f5abd 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c | |||
@@ -330,10 +330,9 @@ static int s3c2410wdt_probe(struct platform_device *pdev) | |||
330 | } | 330 | } |
331 | 331 | ||
332 | /* get the memory region for the watchdog timer */ | 332 | /* get the memory region for the watchdog timer */ |
333 | wdt_base = devm_request_and_ioremap(dev, wdt_mem); | 333 | wdt_base = devm_ioremap_resource(dev, wdt_mem); |
334 | if (wdt_base == NULL) { | 334 | if (IS_ERR(wdt_base)) { |
335 | dev_err(dev, "failed to devm_request_and_ioremap() region\n"); | 335 | ret = PTR_ERR(wdt_base); |
336 | ret = -ENOMEM; | ||
337 | goto err; | 336 | goto err; |
338 | } | 337 | } |
339 | 338 | ||