diff options
author | 2019-04-04 06:16:46 -0700 | |
---|---|---|
committer | 2019-04-15 17:19:53 -0700 | |
commit | e91cb17b733f63f8d55c836be76e89d9753c0859 (patch) | |
tree | 51fd183f65f51ecca7e4e1e3102e12fc1e7aaa2c /drivers/hwmon/pmbus | |
parent | hwmon: (pmbus/ucd9200): Mark ucd9200_of_match as maybe_unused (diff) | |
download | linux-e91cb17b733f63f8d55c836be76e89d9753c0859.tar.gz linux-e91cb17b733f63f8d55c836be76e89d9753c0859.tar.bz2 linux-e91cb17b733f63f8d55c836be76e89d9753c0859.zip |
hwmon: (pmbus/tps53679) Fix build warning
If CONFIG_OF is not enabled, the following build warning is observed.
drivers/hwmon/pmbus/tps53679.c:100:34: warning:
‘tps53679_of_match’ defined but not used
Marking tps53679_of_match as __maybe_unused fixes the problem.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus')
-rw-r--r-- | drivers/hwmon/pmbus/tps53679.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pmbus/tps53679.c b/drivers/hwmon/pmbus/tps53679.c index 2bc352c5357f..3fd5105ee9ae 100644 --- a/drivers/hwmon/pmbus/tps53679.c +++ b/drivers/hwmon/pmbus/tps53679.c @@ -97,7 +97,7 @@ static const struct i2c_device_id tps53679_id[] = { MODULE_DEVICE_TABLE(i2c, tps53679_id); -static const struct of_device_id tps53679_of_match[] = { +static const struct of_device_id __maybe_unused tps53679_of_match[] = { {.compatible = "ti,tps53679"}, {} }; |