File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -358,9 +358,8 @@ static void imx2_wdt_shutdown(struct platform_device *pdev)
358
358
}
359
359
}
360
360
361
- #ifdef CONFIG_PM_SLEEP
362
361
/* Disable watchdog if it is active or non-active but still running */
363
- static int imx2_wdt_suspend (struct device * dev )
362
+ static int __maybe_unused imx2_wdt_suspend (struct device * dev )
364
363
{
365
364
struct watchdog_device * wdog = dev_get_drvdata (dev );
366
365
struct imx2_wdt_device * wdev = watchdog_get_drvdata (wdog );
@@ -381,7 +380,7 @@ static int imx2_wdt_suspend(struct device *dev)
381
380
}
382
381
383
382
/* Enable watchdog and configure it if necessary */
384
- static int imx2_wdt_resume (struct device * dev )
383
+ static int __maybe_unused imx2_wdt_resume (struct device * dev )
385
384
{
386
385
struct watchdog_device * wdog = dev_get_drvdata (dev );
387
386
struct imx2_wdt_device * wdev = watchdog_get_drvdata (wdog );
@@ -406,7 +405,6 @@ static int imx2_wdt_resume(struct device *dev)
406
405
407
406
return 0 ;
408
407
}
409
- #endif
410
408
411
409
static SIMPLE_DEV_PM_OPS (imx2_wdt_pm_ops , imx2_wdt_suspend ,
412
410
imx2_wdt_resume ) ;
You can’t perform that action at this time.
0 commit comments