Skip to contentSkip to conversation

SM501: only compile suspend/resume if CONFIG_PM

PATCH Ben Dooks 1 participant 1 message Jun 21, 2007 Multifunction devices (MFD)

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

The suspend and resume support only needs to be built if CONFIG_PM is defined.

drivers/mfd/sm501.c +5 -1
Index: linux-2.6.21-quilt9/drivers/mfd/sm501.c
===================================================================
@@ -1000,6 +1000,7 @@ static int sm501_plat_probe(struct platf
 
 }
 
+#ifdef CONFIG_PM
 /* power management support */
 
 static int sm501_plat_suspend(struct platform_device *pdev, pm_message_t state)
@@ -1045,7 +1046,10 @@ static int sm501_plat_resume(struct plat
 
 	return 0;
 }
-
+#else
+#define sm501_plat_suspend NULL
+#define sm501_plat_resume NULL
+#endif
 
 /* Initialisation data for PCI devices */