diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-04-04 06:23:59 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-04-15 17:19:53 -0700 |
commit | 462d7e7ec9e855895a000c17dba0192bf6489718 (patch) | |
tree | 946036d5ffac28e4925c6b81bdfcfa69aa934b65 /drivers/hwmon/adc128d818.c | |
parent | 787afaa30fa51bf9e85b56b237a6ad4a0249b3e8 (diff) | |
download | linux-462d7e7ec9e855895a000c17dba0192bf6489718.tar.bz2 |
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.c | 2 |
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" }, { }, }; |