diff options
Diffstat (limited to 'drivers/watchdog/davinci_wdt.c')
-rw-r--r-- | drivers/watchdog/davinci_wdt.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/watchdog/davinci_wdt.c b/drivers/watchdog/davinci_wdt.c index 100d4fbfde2a..bead7740c86a 100644 --- a/drivers/watchdog/davinci_wdt.c +++ b/drivers/watchdog/davinci_wdt.c | |||
@@ -217,11 +217,6 @@ static int davinci_wdt_probe(struct platform_device *pdev) | |||
217 | dev_info(dev, "heartbeat %d sec\n", heartbeat); | 217 | dev_info(dev, "heartbeat %d sec\n", heartbeat); |
218 | 218 | ||
219 | wdt_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 219 | wdt_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
220 | if (wdt_mem == NULL) { | ||
221 | dev_err(dev, "failed to get memory region resource\n"); | ||
222 | return -ENOENT; | ||
223 | } | ||
224 | |||
225 | wdt_base = devm_ioremap_resource(dev, wdt_mem); | 220 | wdt_base = devm_ioremap_resource(dev, wdt_mem); |
226 | if (IS_ERR(wdt_base)) | 221 | if (IS_ERR(wdt_base)) |
227 | return PTR_ERR(wdt_base); | 222 | return PTR_ERR(wdt_base); |