Commit 8d645408 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'mfd-fixes-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd

Pull MFD fix from Lee Jones:
 "Identify potentially unused functions in rk808 driver when !PM"

* tag 'mfd-fixes-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd:
  mfd: rk808: Make PM function declaration static
  mfd: rk808: Mark pm functions __maybe_unused
parents 0004654f 4d82fa67
...@@ -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;
...@@ -768,7 +768,7 @@ static int rk8xx_resume(struct device *dev) ...@@ -768,7 +768,7 @@ static int rk8xx_resume(struct device *dev)
return ret; return ret;
} }
SIMPLE_DEV_PM_OPS(rk8xx_pm_ops, rk8xx_suspend, rk8xx_resume); static SIMPLE_DEV_PM_OPS(rk8xx_pm_ops, rk8xx_suspend, rk8xx_resume);
static struct i2c_driver rk808_i2c_driver = { static struct i2c_driver rk808_i2c_driver = {
.driver = { .driver = {
......
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