]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
hwmon: (lm85) Fix build warning
authorGuenter Roeck <linux@roeck-us.net>
Thu, 4 Apr 2019 14:44:40 +0000 (07:44 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 00:19:53 +0000 (17:19 -0700)
The following build warning is seen if CONFIG_OF is disabled.

drivers/hwmon/lm85.c:1645:34: warning:
‘lm85_of_match’ defined but not used

Mark lm85_of_match as __maybe_unused to ix the problem.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm85.c

index a95d48316f064103b488f09648a62bd4b1dc5773..235bba054d470d2534f0021aa3d66cba51a500ea 100644 (file)
@@ -1642,7 +1642,7 @@ static const struct i2c_device_id lm85_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, lm85_id);
 
-static const struct of_device_id lm85_of_match[] = {
+static const struct of_device_id __maybe_unused lm85_of_match[] = {
        {
                .compatible = "adi,adm1027",
                .data = (void *)adm1027