提交 bdaf6703 编写于 作者: J Jaewon Kim 提交者: Lee Jones

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: NJaewon Kim <jaewon02.kim@samsung.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 51529705
...@@ -115,6 +115,7 @@ static void intel_soc_pmic_shutdown(struct i2c_client *i2c) ...@@ -115,6 +115,7 @@ static void intel_soc_pmic_shutdown(struct i2c_client *i2c)
return; return;
} }
#if defined(CONFIG_PM_SLEEP)
static int intel_soc_pmic_suspend(struct device *dev) static int intel_soc_pmic_suspend(struct device *dev)
{ {
struct intel_soc_pmic *pmic = dev_get_drvdata(dev); struct intel_soc_pmic *pmic = dev_get_drvdata(dev);
...@@ -132,6 +133,7 @@ static int intel_soc_pmic_resume(struct device *dev) ...@@ -132,6 +133,7 @@ static int intel_soc_pmic_resume(struct device *dev)
return 0; return 0;
} }
#endif
static SIMPLE_DEV_PM_OPS(intel_soc_pmic_pm_ops, intel_soc_pmic_suspend, static SIMPLE_DEV_PM_OPS(intel_soc_pmic_pm_ops, intel_soc_pmic_suspend,
intel_soc_pmic_resume); intel_soc_pmic_resume);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册