Skip to contentSkip to conversation

mfd: intel-lpss: fix build error when !CONFIG_PM_SLEEP

PATCH New Andy Shevchenko 1 participant 1 message Jul 30, 2015

Subsystems (3)
lore
Share & tools
lore

Andy Shevchenko

author reviewer
#0 lore raw

PATCH 1/1 mfd: intel-lpss: fix build error when !CONFIG_PM_SLEEP

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.

---
 drivers/mfd/intel-lpss.h | 2 ++
 1 file changed, 2 insertions(+)
drivers/mfd/intel-lpss.h +2 -0
index f28cb28a..2c7f8d7 100644
@@ -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		\
Signature · 1 line
2.4.6