aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorGeorge Cherian <george.cherian@ti.com>2014-06-10 00:40:07 -0400
committerWim Van Sebroeck <wim@iguana.be>2014-08-05 16:42:27 -0400
commit37f152915fba723de7e5bf43ade3bd971977b724 (patch)
tree6e108622ed6a1cbe7ada124b25f146e406069b0e /drivers/watchdog
parent4bba08dda402172727c14d8e363a3dda38293548 (diff)
watchdog: lantiq_wdt: Remove the un-necessary check of resource after platform_get_resource()
devm_ioremap_resource() checks for valid resource. Remove the un-necessary check after platform_get_resource(). Signed-off-by: George Cherian <george.cherian@ti.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/lantiq_wdt.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/watchdog/lantiq_wdt.c b/drivers/watchdog/lantiq_wdt.c
index 3b3148c764a3..021e84eb88eb 100644
--- a/drivers/watchdog/lantiq_wdt.c
+++ b/drivers/watchdog/lantiq_wdt.c
@@ -192,11 +192,6 @@ ltq_wdt_probe(struct platform_device *pdev)
192 struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 192 struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
193 struct clk *clk; 193 struct clk *clk;
194 194
195 if (!res) {
196 dev_err(&pdev->dev, "cannot obtain I/O memory region");
197 return -ENOENT;
198 }
199
200 ltq_wdt_membase = devm_ioremap_resource(&pdev->dev, res); 195 ltq_wdt_membase = devm_ioremap_resource(&pdev->dev, res);
201 if (IS_ERR(ltq_wdt_membase)) 196 if (IS_ERR(ltq_wdt_membase))
202 return PTR_ERR(ltq_wdt_membase); 197 return PTR_ERR(ltq_wdt_membase);