Skip to content

Commit 100fb76

Browse files
Banajit GoswamiWim Van Sebroeck
authored andcommitted
watchdog: s3c2410_wdt - Fix on handling of the request_mem_region fail
If the request for wdt_mem region fails, this patch modifies the driver such that, it does not try to release the wdt_mem region on exit. Signed-off-by: Banajit Goswami <[email protected]> Signed-off-by: Kukjin Kim <[email protected]> Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 8740f71 commit 100fb76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/watchdog/s3c2410_wdt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,7 @@ static int __devinit s3c2410wdt_probe(struct platform_device *pdev)
426426
wdt_mem = request_mem_region(res->start, size, pdev->name);
427427
if (wdt_mem == NULL) {
428428
dev_err(dev, "failed to get memory region\n");
429-
ret = -ENOENT;
430-
goto err_req;
429+
return -EBUSY;
431430
}
432431

433432
wdt_base = ioremap(res->start, size);

0 commit comments

Comments
 (0)