summaryrefslogtreecommitdiff
path: root/drivers/regulator/pfuze100-regulator.c
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2019-07-23 09:43:25 +0800
committerAnson Huang <Anson.Huang@nxp.com>2019-07-23 15:02:55 +0800
commit36fb6ba8ad9f3a5eb6d883e53c5bb42cd5aec3ce (patch)
tree1d8c5b28415eaa2950e5da65107a99dda9eafbcb /drivers/regulator/pfuze100-regulator.c
parent219d360b02f74e210c8382de5c8061d660b14241 (diff)
MLK-21076-4 regulator: pfuze100: Fix build warning when CONFIG_PM_SLEEP=n
Fix below build warning when CONFIG_PM_SLEEP=n: drivers/regulator/pfuze100-regulator.c:743:12: warning: 'pfuze_resume' defined but not used [-Wunused-function] static int pfuze_resume(struct device *dev) ^~~~~~~~~~~~ drivers/regulator/pfuze100-regulator.c:717:12: warning: 'pfuze_suspend' defined but not used [-Wunused-functio ] static int pfuze_suspend(struct device *dev) ^~~~~~~~~~~~~ Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Diffstat (limited to 'drivers/regulator/pfuze100-regulator.c')
-rw-r--r--drivers/regulator/pfuze100-regulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c
index 7f7fb013965a..13d1c65ae627 100644
--- a/drivers/regulator/pfuze100-regulator.c
+++ b/drivers/regulator/pfuze100-regulator.c
@@ -714,7 +714,7 @@ static int pfuze_reg_save_restore(struct pfuze_chip *pfuze_chip, int start,
return index + i;
}
-static int pfuze_suspend(struct device *dev)
+static int __maybe_unused pfuze_suspend(struct device *dev)
{
struct pfuze_chip *pfuze_chip = i2c_get_clientdata(to_i2c_client(dev));
int index = 0;
@@ -740,7 +740,7 @@ err_ret:
return index;
}
-static int pfuze_resume(struct device *dev)
+static int __maybe_unused pfuze_resume(struct device *dev)
{
struct pfuze_chip *pfuze_chip = i2c_get_clientdata(to_i2c_client(dev));
int index = 0;