diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-04-04 16:35:28 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-04-16 03:19:53 +0300 |
commit | a62fe340e27184e929b453f6b5097a2f7c9c160c (patch) | |
tree | 8a9cae3b8efcccd81ec508b8844ce866758d2f45 /drivers/hwmon/hih6130.c | |
parent | fe339dbf295a5da2b316e1f8e762e02fae000f50 (diff) | |
download | linux-a62fe340e27184e929b453f6b5097a2f7c9c160c.tar.xz |
hwmon: (hih6130) Fix build warning
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/hih6130.c:255:34: warning:
‘hih6130_of_match’ defined but not used
Mark hih6130_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/hih6130.c')
-rw-r--r-- | drivers/hwmon/hih6130.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/hih6130.c b/drivers/hwmon/hih6130.c index d167fcfec765..2bf9599b34a1 100644 --- a/drivers/hwmon/hih6130.c +++ b/drivers/hwmon/hih6130.c @@ -252,7 +252,7 @@ static const struct i2c_device_id hih6130_id[] = { }; MODULE_DEVICE_TABLE(i2c, hih6130_id); -static const struct of_device_id hih6130_of_match[] = { +static const struct of_device_id __maybe_unused hih6130_of_match[] = { { .compatible = "honeywell,hih6130", }, { } }; |