aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/adc128d818.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2019-04-04 06:23:59 -0700
committerGuenter Roeck <linux@roeck-us.net>2019-04-15 17:19:53 -0700
commit462d7e7ec9e855895a000c17dba0192bf6489718 (patch)
tree946036d5ffac28e4925c6b81bdfcfa69aa934b65 /drivers/hwmon/adc128d818.c
parenthwmon: (lm90) Fix build warning (diff)
downloadlinux-dev-462d7e7ec9e855895a000c17dba0192bf6489718.tar.xz
linux-dev-462d7e7ec9e855895a000c17dba0192bf6489718.zip
hwmon: (adc128d818) Fix build warning
If CONFIG_OF is not enabled, the following build warning is observed. drivers/hwmon/adc128d818.c:524:34: warning: ‘adc128_of_match’ defined but not used Mark adc128_of_match as __maybe_unused to fix the problem. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/adc128d818.c')
-rw-r--r--drivers/hwmon/adc128d818.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/adc128d818.c b/drivers/hwmon/adc128d818.c
index ca794bf904de..e640be442dae 100644
--- a/drivers/hwmon/adc128d818.c
+++ b/drivers/hwmon/adc128d818.c
@@ -521,7 +521,7 @@ static const struct i2c_device_id adc128_id[] = {
};
MODULE_DEVICE_TABLE(i2c, adc128_id);
-static const struct of_device_id adc128_of_match[] = {
+static const struct of_device_id __maybe_unused adc128_of_match[] = {
{ .compatible = "ti,adc128d818" },
{ },
};