]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Suspend: Fix compilation warning for CONFIG_SUSPEND unset
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 8 Dec 2007 01:03:26 +0000 (02:03 +0100)
committerLen Brown <len.brown@intel.com>
Fri, 1 Feb 2008 23:30:54 +0000 (18:30 -0500)
Suspend: Make debug facility depend on CONFIG_SUSPEND

Make the new suspend debug facility code depend on CONFIG_SUSPEND,
as appropriate, to remove the compiler warning printed when CONFIG_PM is set
and CONFIG_SUSPEND is not set.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Len Brown <len.brown@intel.com>
kernel/power/main.c

index 0a9f269075ee2eef49dc17c9f995d76b64a82af3..7fb805de19a85fd6272a6562f0ccc0e9f38fa0e7 100644 (file)
@@ -55,6 +55,8 @@ int pm_notifier_call_chain(unsigned long val)
 
 #endif /* CONFIG_PM_SLEEP */
 
+#ifdef CONFIG_SUSPEND
+
 #ifdef CONFIG_PM_DEBUG
 int pm_test_level = TEST_NONE;