* [PATCH 1/1] mfd: intel-lpss: fix build error when !CONFIG_PM_SLEEP
@ 2015-07-30 10:46 Andy Shevchenko
0 siblings, 0 replies; only message in thread
From: Andy Shevchenko @ 2015-07-30 10:46 UTC (permalink / raw)
To: Lee Jones, Jim Davis, Stephen Rothwell, linux-next, linux-kernel
Cc: Andy Shevchenko
Jim Davis reported the compilation error with a random configuration which
apparently has CONFIG_PM=y and CONFIG_PM_SLEEP=n. With that conditions we have
missed definition of INTEL_LPSS_SLEEP_PM_OPS macro. Add it here.
Reported-by: Jim Davis <jim.epost@gmail•com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux•intel.com>
---
drivers/mfd/intel-lpss.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mfd/intel-lpss.h b/drivers/mfd/intel-lpss.h
index f28cb28a..2c7f8d7 100644
--- a/drivers/mfd/intel-lpss.h
+++ b/drivers/mfd/intel-lpss.h
@@ -42,6 +42,8 @@ int intel_lpss_resume(struct device *dev);
.thaw = intel_lpss_resume, \
.poweroff = intel_lpss_suspend, \
.restore = intel_lpss_resume,
+#else
+#define INTEL_LPSS_SLEEP_PM_OPS
#endif
#define INTEL_LPSS_RUNTIME_PM_OPS \
--
2.4.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-30 10:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-30 10:46 [PATCH 1/1] mfd: intel-lpss: fix build error when !CONFIG_PM_SLEEP Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox