Skip to content

Commit bdaf670

Browse files
jaewon02kimLee Jones
authored andcommitted
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>
1 parent 5152970 commit bdaf670

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/mfd/intel_soc_pmic_core.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ static void intel_soc_pmic_shutdown(struct i2c_client *i2c)
115115
return;
116116
}
117117

118+
#if defined(CONFIG_PM_SLEEP)
118119
static int intel_soc_pmic_suspend(struct device *dev)
119120
{
120121
struct intel_soc_pmic *pmic = dev_get_drvdata(dev);
@@ -132,6 +133,7 @@ static int intel_soc_pmic_resume(struct device *dev)
132133

133134
return 0;
134135
}
136+
#endif
135137

136138
static SIMPLE_DEV_PM_OPS(intel_soc_pmic_pm_ops, intel_soc_pmic_suspend,
137139
intel_soc_pmic_resume);

0 commit comments

Comments
 (0)