From: Guenter Roeck Date: Thu, 4 Apr 2019 13:44:14 +0000 (-0700) Subject: hwmon: (max6650) Fix build warning X-Git-Tag: v5.15~6476^2~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2720ce7e46e1c851890ddd9e94c8548230a13280;p=platform%2Fkernel%2Flinux-starfive.git hwmon: (max6650) Fix build warning If CONFIG_OF is not enabled, the following build warning is observed. drivers/hwmon/max6650.c:137:34: warning: ‘max6650_dt_match’ defined but not used Mark max6650_dt_match as __maybe_unused to fix the problem. Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/max6650.c b/drivers/hwmon/max6650.c index 61135a2..95b2346 100644 --- a/drivers/hwmon/max6650.c +++ b/drivers/hwmon/max6650.c @@ -134,7 +134,7 @@ static const u8 tach_reg[] = { MAX6650_REG_TACH3, }; -static const struct of_device_id max6650_dt_match[] = { +static const struct of_device_id __maybe_unused max6650_dt_match[] = { { .compatible = "maxim,max6650", .data = (void *)1