summaryrefslogtreecommitdiff
path: root/drivers/hwmon/ina2xx.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2019-04-04 08:00:57 -0700
committerGuenter Roeck <linux@roeck-us.net>2019-04-15 17:19:53 -0700
commitdf6b8c70c2109d2221592954aacd67a2ad2f696e (patch)
tree2f1fd9d77cd68784fa8de3451c194d3dad2366a7 /drivers/hwmon/ina2xx.c
parent8c71c7b943d4c12994e4e3eb2d50dfb3681e0c8d (diff)
downloadlwn-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.c2
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