Skip to content

Commit ba90f26

Browse files
Fabio EstevamWim Van Sebroeck
authored andcommitted
watchdog: imx2_wdt: Fix the argument of watchdog_active()
Fix the following build warning by passing the expected argument type to watchdog_active(): drivers/watchdog/imx2_wdt.c: In function 'imx2_wdt_suspend': drivers/watchdog/imx2_wdt.c:340:2: warning: passing argument 1 of 'watchdog_active' from incompatible pointer type [enabled by default] In file included from drivers/watchdog/imx2_wdt.c:38:0: include/linux/watchdog.h:104:20: note: expected 'struct watchdog_device *' but argument is of type 'struct watchdog_device **' Reported-by: Olof's autobuilder <build@lixom.net> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
1 parent aefbaf3 commit ba90f26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/watchdog/imx2_wdt.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ static int imx2_wdt_suspend(struct device *dev)
337337
imx2_wdt_ping(wdog);
338338

339339
/* Watchdog has been stopped but IP block is still running */
340-
if (!watchdog_active(&wdog) && imx2_wdt_is_running(wdev))
340+
if (!watchdog_active(wdog) && imx2_wdt_is_running(wdev))
341341
del_timer_sync(&wdev->timer);
342342

343343
clk_disable_unprepare(wdev->clk);

0 commit comments

Comments
 (0)