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

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>

authored by

Jaewon Kim and committed by
Lee Jones
bdaf6703 51529705

+2
+2
drivers/mfd/intel_soc_pmic_core.c
··· 115 115 return; 116 116 } 117 117 118 + #if defined(CONFIG_PM_SLEEP) 118 119 static int intel_soc_pmic_suspend(struct device *dev) 119 120 { 120 121 struct intel_soc_pmic *pmic = dev_get_drvdata(dev); ··· 133 132 134 133 return 0; 135 134 } 135 + #endif 136 136 137 137 static SIMPLE_DEV_PM_OPS(intel_soc_pmic_pm_ops, intel_soc_pmic_suspend, 138 138 intel_soc_pmic_resume);