aboutsummaryrefslogtreecommitdiff
path: root/drivers/regulator/rt4801-regulator.c
diff options
context:
space:
mode:
authorGravatar ChiYuan Huang <cy_huang@richtek.com> 2020-08-24 10:05:13 +0800
committerGravatar Mark Brown <broonie@kernel.org> 2020-08-24 14:17:54 +0100
commitc8b2c8949c45b01d75237331fc1387036b952d58 (patch)
treea3f16744083902b39cd0bda64a4043dd8d87ae9d /drivers/regulator/rt4801-regulator.c
parentregulator: mp886x: use "mps,switch-frequency-hz" (diff)
downloadlinux-c8b2c8949c45b01d75237331fc1387036b952d58.tar.gz
linux-c8b2c8949c45b01d75237331fc1387036b952d58.tar.bz2
linux-c8b2c8949c45b01d75237331fc1387036b952d58.zip
regulator: rt4801: Fix W=1 build warning when CONFIG_OF=n
Fix below warning when CONFIG_OF=n: drivers/regulator/rt4801-regulator.c:206:34: warning: unused variable 'rt4801_of_id' [-Wunused-const-variable] 206 | static const struct of_device_id rt4801_of_id[] = { | ^~~~~~~~~~~~ Signed-off-by: ChiYuan Huang <cy_huang@richtek.com> Reported-by: kernel test robot <lkp@intel.com> Link: https://lore.kernel.org/r/1598234713-8532-1-git-send-email-u0084500@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/rt4801-regulator.c')
-rw-r--r--drivers/regulator/rt4801-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/rt4801-regulator.c b/drivers/regulator/rt4801-regulator.c
index 0ddc670a3888..2055a9cb13ba 100644
--- a/drivers/regulator/rt4801-regulator.c
+++ b/drivers/regulator/rt4801-regulator.c
@@ -203,7 +203,7 @@ static int rt4801_probe(struct i2c_client *i2c)
return 0;
}
-static const struct of_device_id rt4801_of_id[] = {
+static const struct of_device_id __maybe_unused rt4801_of_id[] = {
{ .compatible = "richtek,rt4801", },
{ },
};