Skip to content

Commit

Permalink
watchdog: s3c2410_wdt - Fix on handling of the request_mem_region fail
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Banajit Goswami authored and Wim Van Sebroeck committed May 25, 2010
1 parent 8740f71 commit 100fb76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/watchdog/s3c2410_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,7 @@ static int __devinit s3c2410wdt_probe(struct platform_device *pdev)
wdt_mem = request_mem_region(res->start, size, pdev->name);
if (wdt_mem == NULL) {
dev_err(dev, "failed to get memory region\n");
ret = -ENOENT;
goto err_req;
return -EBUSY;
}

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

0 comments on commit 100fb76

Please sign in to comment.