[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20181217163152.EAE9E112593C@debutante.sirena.org.uk>
Date: Mon, 17 Dec 2018 16:31:52 +0000 (GMT)
From: Mark Brown <broonie@...nel.org>
To: Claudiu Beznea <claudiu.beznea@...rochip.com>
Cc: Andrei Stefanescu <andrei.stefanescu@...rochip.com>,
Mark Brown <broonie@...nel.org>, linux-kernel@...r.kernel.org
Subject: Applied "regulator: act8945a-regulator: fix 'defined but not used' compiler warning" to the regulator tree
The patch
regulator: act8945a-regulator: fix 'defined but not used' compiler warning
has been applied to the regulator tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From 22a5a4a44c43e2993e96183039aef71566e1a514 Mon Sep 17 00:00:00 2001
From: Claudiu Beznea <claudiu.beznea@...rochip.com>
Date: Mon, 17 Dec 2018 10:37:51 +0000
Subject: [PATCH] regulator: act8945a-regulator: fix 'defined but not used'
compiler warning
Fix 'defined but not used' compiler warning for act8945a_suspend()
function in case CONFIG_PM_SLEEP is not defined.
Fixes: b5ebba46e694 ("regulator: act8945a-regulator: add shutdown function")
Signed-off-by: Claudiu Beznea <claudiu.beznea@...rochip.com>
Reported-by: Andrei Stefanescu <andrei.stefanescu@...rochip.com>
Signed-off-by: Mark Brown <broonie@...nel.org>
---
drivers/regulator/act8945a-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/act8945a-regulator.c b/drivers/regulator/act8945a-regulator.c
index 90572b6370c6..157272536122 100644
--- a/drivers/regulator/act8945a-regulator.c
+++ b/drivers/regulator/act8945a-regulator.c
@@ -326,7 +326,7 @@ static int act8945a_pmic_probe(struct platform_device *pdev)
return regmap_write(act8945a->regmap, ACT8945A_SYS_UNLK_REGS, 0xef);
}
-static int act8945a_suspend(struct device *pdev)
+static int __maybe_unused act8945a_suspend(struct device *pdev)
{
struct act8945a_pmic *act8945a = dev_get_drvdata(pdev);
--
2.19.0.rc2
Powered by blists - more mailing lists