From 36fb6ba8ad9f3a5eb6d883e53c5bb42cd5aec3ce Mon Sep 17 00:00:00 2001 From: Anson Huang Date: Tue, 23 Jul 2019 09:43:25 +0800 Subject: 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 Reviewed-by: Jacky Bai --- drivers/regulator/pfuze100-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/regulator/pfuze100-regulator.c') 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; -- cgit v1.2.3