Skip to content

Commit

Permalink
mfd: max14577: max14577_{suspend,resume}() should depend on CONFIG_PM…
Browse files Browse the repository at this point in the history
…_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>
  • Loading branch information
Geert Uytterhoeven authored and Lee Jones committed Feb 19, 2014
1 parent 5c6fbd5 commit 3edeb1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mfd/max14577.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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", },
Expand Down

0 comments on commit 3edeb1e

Please sign in to comment.