提交 3edeb1e4 编写于 作者: G Geert Uytterhoeven 提交者: Lee Jones

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: NGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 5c6fbd56
...@@ -173,6 +173,7 @@ static const struct i2c_device_id max14577_i2c_id[] = { ...@@ -173,6 +173,7 @@ static const struct i2c_device_id max14577_i2c_id[] = {
}; };
MODULE_DEVICE_TABLE(i2c, max14577_i2c_id); MODULE_DEVICE_TABLE(i2c, max14577_i2c_id);
#ifdef CONFIG_PM_SLEEP
static int max14577_suspend(struct device *dev) static int max14577_suspend(struct device *dev)
{ {
struct i2c_client *i2c = container_of(dev, struct i2c_client, dev); struct i2c_client *i2c = container_of(dev, struct i2c_client, dev);
...@@ -208,6 +209,7 @@ static int max14577_resume(struct device *dev) ...@@ -208,6 +209,7 @@ static int max14577_resume(struct device *dev)
return 0; return 0;
} }
#endif /* CONFIG_PM_SLEEP */
static struct of_device_id max14577_dt_match[] = { static struct of_device_id max14577_dt_match[] = {
{ .compatible = "maxim,max14577", }, { .compatible = "maxim,max14577", },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册