Skip to content

Commit f1e75e0

Browse files
committed
hwmon: (pmbus/ir38064) Mark ir38064_of_match as __maybe_unused
If CONFIG_PM is not enabled, the following warning is reported. drivers/hwmon/pmbus/ir38064.c:54:34: warning: unused variable 'ir38064_of_match' Mark it as __maybe_unused. Reported-by: kernel test robot <[email protected]> Cc: Arthur Heymans <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
1 parent d379880 commit f1e75e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/pmbus/ir38064.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static const struct i2c_device_id ir38064_id[] = {
6262

6363
MODULE_DEVICE_TABLE(i2c, ir38064_id);
6464

65-
static const struct of_device_id ir38064_of_match[] = {
65+
static const struct of_device_id __maybe_unused ir38064_of_match[] = {
6666
{ .compatible = "infineon,ir38060" },
6767
{ .compatible = "infineon,ir38064" },
6868
{ .compatible = "infineon,ir38164" },

0 commit comments

Comments
 (0)