Commit 412b3729dd0234771c67452b8999191f1e8d8630
Committed by
Wim Van Sebroeck
1 parent
98e4a29389
Exists in
master
and in
20 other branches
watchdog: omap_wdt: eliminate unused variable and a compiler warning
We forgot to delete this in the commit 4f4753d9 (watchdog: omap_wdt: convert to devm_ functions), and as a result the following compilation warning was introduced: drivers/watchdog/omap_wdt.c: In function 'omap_wdt_remove': drivers/watchdog/omap_wdt.c:299:19: warning: unused variable 'res' [-Wunused-variable] Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Reviewed-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff
drivers/watchdog/omap_wdt.c
... | ... | @@ -296,7 +296,6 @@ |
296 | 296 | { |
297 | 297 | struct watchdog_device *wdog = platform_get_drvdata(pdev); |
298 | 298 | struct omap_wdt_dev *wdev = watchdog_get_drvdata(wdog); |
299 | - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | |
300 | 299 | |
301 | 300 | pm_runtime_disable(wdev->dev); |
302 | 301 | watchdog_unregister_device(wdog); |