* SM501: only compile suspend/resume if CONFIG_PM
@ 2007-06-21 18:11 Ben Dooks
0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2007-06-21 18:11 UTC (permalink / raw)
To: linux-kernel, akpm
The suspend and resume support only needs to be built if
CONFIG_PM is defined.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Index: linux-2.6.21-quilt9/drivers/mfd/sm501.c
===================================================================
--- linux-2.6.21-quilt9.orig/drivers/mfd/sm501.c
+++ 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 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-06-21 18:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-21 18:11 SM501: only compile suspend/resume if CONFIG_PM Ben Dooks
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.