diff options
author | Robin Gong <yibin.gong@nxp.com> | 2019-07-23 23:56:14 +0800 |
---|---|---|
committer | Robin Gong <yibin.gong@nxp.com> | 2019-07-24 00:20:49 +0800 |
commit | 9967e06ba509ba84fec4b3848341c58d1c4d740a (patch) | |
tree | 1030a571585742c2f2c456d8150305d60c54bd18 /drivers/regulator | |
parent | fc6b26798579676f259aede42fb4aaecef9599ea (diff) |
MLK-22302-5: regulator: pfuze100: fix build warning with CONFIG_PM_SLEEP=n
Fix build waring with CONFIG_PM_SLEEP=n.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/pfuze100-regulator.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index 13d1c65ae627..cf0b7e6f44e6 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c @@ -694,6 +694,7 @@ static int pfuze100_regulator_probe(struct i2c_client *client, return 0; } +#ifdef CONFIG_PM_SLEEP static int pfuze_reg_save_restore(struct pfuze_chip *pfuze_chip, int start, int end, int index, bool save) { @@ -765,6 +766,7 @@ static int __maybe_unused pfuze_resume(struct device *dev) err_ret: return index; } +#endif static const struct dev_pm_ops pfuze_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(pfuze_suspend, pfuze_resume) |