From: Guenter Roeck Date: Thu, 4 Apr 2019 13:41:19 +0000 (-0700) Subject: hwmon: (ina209) Fix build warning X-Git-Tag: v5.4-rc1~1101^2~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32c2d40252454e539b91d37776869ed69c23b2e8;p=platform%2Fkernel%2Flinux-rpi.git hwmon: (ina209) Fix build warning If CONFIG_OF is not enabled, the following build warning is observed. drivers/hwmon/ina209.c:590:34: warning: ‘ina209_of_match’ defined but not used Mark ina209_of_match as __maybe_unused to fix the problem. Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/ina209.c b/drivers/hwmon/ina209.c index e3854463db84..6a4ec2f2ddb2 100644 --- a/drivers/hwmon/ina209.c +++ b/drivers/hwmon/ina209.c @@ -587,7 +587,7 @@ static const struct i2c_device_id ina209_id[] = { }; MODULE_DEVICE_TABLE(i2c, ina209_id); -static const struct of_device_id ina209_of_match[] = { +static const struct of_device_id __maybe_unused ina209_of_match[] = { { .compatible = "ti,ina209" }, { }, };