diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2014-01-26 11:38:42 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-02-19 14:30:32 +0100 |
commit | 3edeb1e4b27e1553f4879e0e462724ac7cd75c62 (patch) | |
tree | 86c03030e7007642497e7d33fd17dc53448240c7 /drivers/mfd/max14577.c | |
parent | mfd: tps65217: Naturalise cross-architecture discrepancies (diff) | |
download | linux-3edeb1e4b27e1553f4879e0e462724ac7cd75c62.tar.xz linux-3edeb1e4b27e1553f4879e0e462724ac7cd75c62.zip |
mfd: max14577: max14577_{suspend,resume}() should depend on CONFIG_PM_SLEEP
If CONFIG_PM_SLEEP=n:
drivers/mfd/max14577.c:177: warning: ‘max14577_suspend’ defined but not used
drivers/mfd/max14577.c:200: warning: ‘max14577_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 '')
-rw-r--r-- | drivers/mfd/max14577.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c index ac514fb2b877..71aa14a6bfbb 100644 --- a/drivers/mfd/max14577.c +++ b/drivers/mfd/max14577.c @@ -173,6 +173,7 @@ static const struct i2c_device_id max14577_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, max14577_i2c_id); +#ifdef CONFIG_PM_SLEEP static int max14577_suspend(struct device *dev) { struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); @@ -208,6 +209,7 @@ static int max14577_resume(struct device *dev) return 0; } +#endif /* CONFIG_PM_SLEEP */ static struct of_device_id max14577_dt_match[] = { { .compatible = "maxim,max14577", }, |