Commit 5752bc43 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Lee Jones

mfd: rk808: Mark pm functions __maybe_unused

The newly added suspend/resume functions are only used if CONFIG_PM
is enabled:

drivers/mfd/rk808.c:752:12: error: 'rk8xx_resume' defined but not used [-Werror=unused-function]
drivers/mfd/rk808.c:732:12: error: 'rk8xx_suspend' defined but not used [-Werror=unused-function]

Mark them as __maybe_unused so the compiler can silently drop them
when they are not needed.

Fixes: 586c1b41 ("mfd: rk808: Add RK817 and RK809 support")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 5f9e832c
...@@ -729,7 +729,7 @@ static int rk808_remove(struct i2c_client *client) ...@@ -729,7 +729,7 @@ static int rk808_remove(struct i2c_client *client)
return 0; return 0;
} }
static int rk8xx_suspend(struct device *dev) static int __maybe_unused rk8xx_suspend(struct device *dev)
{ {
struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client); struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client);
int ret = 0; int ret = 0;
...@@ -749,7 +749,7 @@ static int rk8xx_suspend(struct device *dev) ...@@ -749,7 +749,7 @@ static int rk8xx_suspend(struct device *dev)
return ret; return ret;
} }
static int rk8xx_resume(struct device *dev) static int __maybe_unused rk8xx_resume(struct device *dev)
{ {
struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client); struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client);
int ret = 0; int ret = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment