From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Subject: [PATCH 1/1] mfd: intel-lpss: fix build error when !CONFIG_PM_SLEEP Date: Thu, 30 Jul 2015 13:46:19 +0300 Message-ID: <1438253179-108447-1-git-send-email-andriy.shevchenko@linux.intel.com> Return-path: Received: from mga02.intel.com ([134.134.136.20]:52446 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753641AbbG3Kqx (ORCPT ); Thu, 30 Jul 2015 06:46:53 -0400 Sender: linux-next-owner@vger.kernel.org List-ID: 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 Signed-off-by: Andy Shevchenko --- 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