Skip to content

Commit

Permalink
Merge tag 'mfd-fixes-5.3' of git://git.kernel.org/pub/scm/linux/kerne…
Browse files Browse the repository at this point in the history
…l/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
  • Loading branch information
Linus Torvalds committed Aug 27, 2019
2 parents 0004654 + 4d82fa6 commit 8d64540
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/mfd/rk808.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ static int rk808_remove(struct i2c_client *client)
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);
int ret = 0;
Expand All @@ -749,7 +749,7 @@ static int rk8xx_suspend(struct device *dev)
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);
int ret = 0;
Expand All @@ -768,7 +768,7 @@ static int rk8xx_resume(struct device *dev)

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 = {
.driver = {
Expand Down

0 comments on commit 8d64540

Please sign in to comment.