diff options
author | Jisheng Zhang <Jisheng.Zhang@synaptics.com> | 2020-08-21 11:14:49 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-08-21 17:28:12 +0100 |
commit | 8ece31564f1964d52eb1180ee33314c63533947e (patch) | |
tree | e041979dae77a2bad5b26f3653eb533e73cae404 | |
parent | 0f037255008386f4ac15a201678e8e4565cd91a3 (diff) | |
download | linux-8ece31564f1964d52eb1180ee33314c63533947e.tar.bz2 |
regulator: ltc3589: Fix W=1 build warning when CONFIG_OF=n
Fix below warning when CONFIG_OF=n:
drivers/regulator/ltc3589.c:460:34: warning: ‘ltc3589_of_match’ defined but not used [-Wunused-const-variable=]
460 | static const struct of_device_id ltc3589_of_match[] = {
| ^~~~~~~~~~~~~~~~
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Link: https://lore.kernel.org/r/20200821111449.7cf580f2@xhacker.debian
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/regulator/ltc3589.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/ltc3589.c b/drivers/regulator/ltc3589.c index 9a037fdc5fc5..fa563aacf742 100644 --- a/drivers/regulator/ltc3589.c +++ b/drivers/regulator/ltc3589.c @@ -457,7 +457,7 @@ static const struct i2c_device_id ltc3589_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, ltc3589_i2c_id); -static const struct of_device_id ltc3589_of_match[] = { +static const struct of_device_id __maybe_unused ltc3589_of_match[] = { { .compatible = "lltc,ltc3589", .data = (void *)LTC3589, |