aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaewon Kim <jaewon02.kim@samsung.com>2014-09-12 00:35:45 -0400
committerLee Jones <lee.jones@linaro.org>2014-09-26 03:23:52 -0400
commitbdaf67030cbab21a91fd2d6b1771cf336a0dd092 (patch)
tree3b721514d4f25f4dbbc98e88f99b0a58dd229a5e
parent5152970538a5e16c03bbcb9f1c780489a795ed40 (diff)
mfd: intel_soc_pmic: Add CONFIG_PM_SLEEP check for suspend_fn/resume_fn
This patch fix warning message with CONFIG_PM_SLEEP disabled If CONFIG_PM_SLEEP is not enabled we receive the following warning message: drivers/mfd/intel_soc_pmic_core.c:118:12: warning: 'intel_soc_pmic_suspend' defined but not used Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r--drivers/mfd/intel_soc_pmic_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/intel_soc_pmic_core.c b/drivers/mfd/intel_soc_pmic_core.c
index 2720922f90b4..df7b0642a5b4 100644
--- a/drivers/mfd/intel_soc_pmic_core.c
+++ b/drivers/mfd/intel_soc_pmic_core.c
@@ -115,6 +115,7 @@ static void intel_soc_pmic_shutdown(struct i2c_client *i2c)
115 return; 115 return;
116} 116}
117 117
118#if defined(CONFIG_PM_SLEEP)
118static int intel_soc_pmic_suspend(struct device *dev) 119static int intel_soc_pmic_suspend(struct device *dev)
119{ 120{
120 struct intel_soc_pmic *pmic = dev_get_drvdata(dev); 121 struct intel_soc_pmic *pmic = dev_get_drvdata(dev);
@@ -132,6 +133,7 @@ static int intel_soc_pmic_resume(struct device *dev)
132 133
133 return 0; 134 return 0;
134} 135}
136#endif
135 137
136static SIMPLE_DEV_PM_OPS(intel_soc_pmic_pm_ops, intel_soc_pmic_suspend, 138static SIMPLE_DEV_PM_OPS(intel_soc_pmic_pm_ops, intel_soc_pmic_suspend,
137 intel_soc_pmic_resume); 139 intel_soc_pmic_resume);