Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Reported-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Andy Shevchenko and committed by
Lee Jones
47b91923 1f93e4a9

+2
+2
drivers/mfd/intel-lpss.h
··· 42 42 .thaw = intel_lpss_resume, \ 43 43 .poweroff = intel_lpss_suspend, \ 44 44 .restore = intel_lpss_resume, 45 + #else 46 + #define INTEL_LPSS_SLEEP_PM_OPS 45 47 #endif 46 48 47 49 #define INTEL_LPSS_RUNTIME_PM_OPS \