diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-04-04 06:19:50 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-04-15 17:19:53 -0700 |
commit | a90cdd134546ddc545ba1bcba8bdf1489bf6bee6 (patch) | |
tree | 0c490894e56910196eb2cdc5ca9c9cf65636246b | |
parent | 64e5116279581c4014476c4e2afabfc5227f2053 (diff) | |
download | linux-a90cdd134546ddc545ba1bcba8bdf1489bf6bee6.tar.bz2 |
hwmon: (ltc4151) Fix build warning
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/ltc4151.c:211:34: warning:
‘ltc4151_match’ defined but not used
Mark ltc4151_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | drivers/hwmon/ltc4151.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ltc4151.c b/drivers/hwmon/ltc4151.c index 76c6fda76d95..2b5cd37e6dc3 100644 --- a/drivers/hwmon/ltc4151.c +++ b/drivers/hwmon/ltc4151.c @@ -208,7 +208,7 @@ static const struct i2c_device_id ltc4151_id[] = { }; MODULE_DEVICE_TABLE(i2c, ltc4151_id); -static const struct of_device_id ltc4151_match[] = { +static const struct of_device_id __maybe_unused ltc4151_match[] = { { .compatible = "lltc,ltc4151" }, {}, }; |