summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/ath79_wdt.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-05-12 15:19:54 +0200
committerWolfram Sang <wsa@the-dreams.de>2013-05-18 11:58:04 +0200
commit937192a7cf9f09e3ea02ef723855674f97e826bc (patch)
tree0af05d16978a8e1ed5ce8abf8f4648d90cdb2a40 /drivers/watchdog/ath79_wdt.c
parentdrivers/w1/masters: don't check resource with devm_ioremap_resource (diff)
downloadlinux-937192a7cf9f09e3ea02ef723855674f97e826bc.tar.xz
linux-937192a7cf9f09e3ea02ef723855674f97e826bc.zip
drivers/watchdog: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to duplicate this in the driver. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/watchdog/ath79_wdt.c')
-rw-r--r--drivers/watchdog/ath79_wdt.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/watchdog/ath79_wdt.c b/drivers/watchdog/ath79_wdt.c
index d184c48a0482..37cb09b27b63 100644
--- a/drivers/watchdog/ath79_wdt.c
+++ b/drivers/watchdog/ath79_wdt.c
@@ -248,11 +248,6 @@ static int ath79_wdt_probe(struct platform_device *pdev)
return -EBUSY;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res) {
- dev_err(&pdev->dev, "no memory resource found\n");
- return -EINVAL;
- }
-
wdt_base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(wdt_base))
return PTR_ERR(wdt_base);