diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2014-01-26 11:38:43 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-02-19 13:30:34 +0000 |
commit | 8321bbf8906990e60cdb46be4c909a7780275942 (patch) | |
tree | a7f705449533c94dcaa05bc8aac2d4379af15e4d /drivers/mfd | |
parent | 3edeb1e4b27e1553f4879e0e462724ac7cd75c62 (diff) | |
download | linux-8321bbf8906990e60cdb46be4c909a7780275942.tar.bz2 |
mfd: sec-core: sec_pmic_{suspend,resume}() should depend on CONFIG_PM_SLEEP
If CONFIG_PM_SLEEP=n:
drivers/mfd/sec-core.c:349: warning: ‘sec_pmic_suspend’ defined but not used
drivers/mfd/sec-core.c:371: warning: ‘sec_pmic_resume’ defined but not used
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/sec-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index a139798b8065..714e2135210e 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c @@ -315,6 +315,7 @@ static int sec_pmic_remove(struct i2c_client *i2c) return 0; } +#ifdef CONFIG_PM_SLEEP static int sec_pmic_suspend(struct device *dev) { struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); @@ -349,6 +350,7 @@ static int sec_pmic_resume(struct device *dev) return 0; } +#endif /* CONFIG_PM_SLEEP */ static SIMPLE_DEV_PM_OPS(sec_pmic_pm_ops, sec_pmic_suspend, sec_pmic_resume); |