diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-04-04 08:00:57 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-04-15 17:19:53 -0700 |
commit | df6b8c70c2109d2221592954aacd67a2ad2f696e (patch) | |
tree | 2f1fd9d77cd68784fa8de3451c194d3dad2366a7 /drivers/hwmon/ina2xx.c | |
parent | 8c71c7b943d4c12994e4e3eb2d50dfb3681e0c8d (diff) | |
download | lwn-df6b8c70c2109d2221592954aacd67a2ad2f696e.tar.gz lwn-df6b8c70c2109d2221592954aacd67a2ad2f696e.zip |
hwmon: (ina2xx) Fix build warning
The following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/ina2xx.c:510:34: warning:
‘ina2xx_of_match’ defined but not used
Mark ina2xx_of_match as __maybe_unused to fix the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/ina2xx.c')
-rw-r--r-- | drivers/hwmon/ina2xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c index 290379c49be9..42df51f8cdf2 100644 --- a/drivers/hwmon/ina2xx.c +++ b/drivers/hwmon/ina2xx.c @@ -507,7 +507,7 @@ static const struct i2c_device_id ina2xx_id[] = { }; MODULE_DEVICE_TABLE(i2c, ina2xx_id); -static const struct of_device_id ina2xx_of_match[] = { +static const struct of_device_id __maybe_unused ina2xx_of_match[] = { { .compatible = "ti,ina219", .data = (void *)ina219 |