diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-04-04 06:44:14 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-04-15 17:19:53 -0700 |
commit | 2720ce7e46e1c851890ddd9e94c8548230a13280 (patch) | |
tree | 09d4e3fef951c0bbf938a441b27e8adc478d7baf /drivers/hwmon/max6650.c | |
parent | f198a8697dc5192cd3b02b5f941c8d184fa1337c (diff) | |
download | linux-2720ce7e46e1c851890ddd9e94c8548230a13280.tar.gz |
hwmon: (max6650) Fix build warning
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/max6650.c:137:34: warning:
‘max6650_dt_match’ defined but not used
Mark max6650_dt_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/max6650.c')
-rw-r--r-- | drivers/hwmon/max6650.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/max6650.c b/drivers/hwmon/max6650.c index 61135a2d0cff..95b234631e55 100644 --- a/drivers/hwmon/max6650.c +++ b/drivers/hwmon/max6650.c @@ -134,7 +134,7 @@ static const u8 tach_reg[] = { MAX6650_REG_TACH3, }; -static const struct of_device_id max6650_dt_match[] = { +static const struct of_device_id __maybe_unused max6650_dt_match[] = { { .compatible = "maxim,max6650", .data = (void *)1 |