OSDN Git Service

hwmon: (adt7475) Fix build warning
authorGuenter Roeck <linux@roeck-us.net>
Thu, 4 Apr 2019 13:33:42 +0000 (06:33 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 00:19:53 +0000 (17:19 -0700)
commitfe339dbf295a5da2b316e1f8e762e02fae000f50
tree4209cd43bfb0f7ff889d61a0a815ec48ae947a1c
parenteb3cb6d5bd51503f646c8a53bc227f20b23f64a5
hwmon: (adt7475) Fix build warning

If CONFIG_OF is not enabled, the following build warning is observed.

drivers/hwmon/adt7475.c:171:34: warning:
‘adt7475_of_match’ defined but not used

Mark adt7475_of_match as __maybe_unused to fix the problem.

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