diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-04-04 17:59:01 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-04-16 03:19:53 +0300 |
commit | 8c71c7b943d4c12994e4e3eb2d50dfb3681e0c8d (patch) | |
tree | 92aee29fd9719234e5e29bc11a910867b93d7279 /drivers/hwmon | |
parent | 0e09e9f939cb1f16391d5f86c9d39f19c23923a5 (diff) | |
download | linux-8c71c7b943d4c12994e4e3eb2d50dfb3681e0c8d.tar.xz |
hwmon: (lm63) Fix build warning
The following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/lm63.c:1156:34: warning:
‘lm63_of_match’ defined but not used
Mark lm63_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/lm63.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lm63.c b/drivers/hwmon/lm63.c index eac54b9cdeec..8848fbe5fd16 100644 --- a/drivers/hwmon/lm63.c +++ b/drivers/hwmon/lm63.c @@ -1153,7 +1153,7 @@ static const struct i2c_device_id lm63_id[] = { }; MODULE_DEVICE_TABLE(i2c, lm63_id); -static const struct of_device_id lm63_of_match[] = { +static const struct of_device_id __maybe_unused lm63_of_match[] = { { .compatible = "national,lm63", .data = (void *)lm63 |