summaryrefslogtreecommitdiff
path: root/drivers/hwmon/hih6130.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2019-04-04 16:35:28 +0300
committerGuenter Roeck <linux@roeck-us.net>2019-04-16 03:19:53 +0300
commita62fe340e27184e929b453f6b5097a2f7c9c160c (patch)
tree8a9cae3b8efcccd81ec508b8844ce866758d2f45 /drivers/hwmon/hih6130.c
parentfe339dbf295a5da2b316e1f8e762e02fae000f50 (diff)
downloadlinux-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.c2
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", },
{ }
};