diff options
author | Guenter Roeck | 2019-04-04 06:35:28 -0700 |
---|---|---|
committer | Guenter Roeck | 2019-04-15 17:19:53 -0700 |
commit | a62fe340e27184e929b453f6b5097a2f7c9c160c (patch) | |
tree | 8a9cae3b8efcccd81ec508b8844ce866758d2f45 /drivers | |
parent | fe339dbf295a5da2b316e1f8e762e02fae000f50 (diff) |
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')
-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", }, { } }; |