]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
WATCHDOG: fix build PM warnings
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 8 Nov 2012 10:51:03 +0000 (10:51 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 8 Nov 2012 10:54:16 +0000 (10:54 +0000)
drivers/watchdog/sp805_wdt.c:288:12: warning: 'sp805_wdt_suspend' defined but not used
drivers/watchdog/sp805_wdt.c:298:12: warning: 'sp805_wdt_resume' defined but not used

This is caused by the wrong config symbol being used for these functions.
Rather than fixing that, mark the functions with __maybe_unused

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/watchdog/sp805_wdt.c

index e4841c36798bd758d9a037f8d89de467047d88ae..dfddfbf5d9fe7ded64da0841411a5d1d09a21dba 100644 (file)
@@ -284,8 +284,7 @@ static int __devexit sp805_wdt_remove(struct amba_device *adev)
        return 0;
 }
 
-#ifdef CONFIG_PM
-static int sp805_wdt_suspend(struct device *dev)
+static int __maybe_unused sp805_wdt_suspend(struct device *dev)
 {
        struct sp805_wdt *wdt = dev_get_drvdata(dev);
 
@@ -295,7 +294,7 @@ static int sp805_wdt_suspend(struct device *dev)
        return 0;
 }
 
-static int sp805_wdt_resume(struct device *dev)
+static int __maybe_unused sp805_wdt_resume(struct device *dev)
 {
        struct sp805_wdt *wdt = dev_get_drvdata(dev);
 
@@ -304,7 +303,6 @@ static int sp805_wdt_resume(struct device *dev)
 
        return 0;
 }
-#endif /* CONFIG_PM */
 
 static SIMPLE_DEV_PM_OPS(sp805_wdt_dev_pm_ops, sp805_wdt_suspend,
                sp805_wdt_resume);