提交 bd7d56a7 编写于 作者: G Guenter Roeck

hwmon: (tmp421) Fix build warning

The following build warning is seen if CONFIG_OF is disabled.

drivers/hwmon/tmp421.c:73:34: warning:
	‘tmp421_of_match’ defined but not used

Mark tmp421_of_match as __maybe_unused to fix the problem.
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 1cbee124
...@@ -70,7 +70,7 @@ static const struct i2c_device_id tmp421_id[] = { ...@@ -70,7 +70,7 @@ static const struct i2c_device_id tmp421_id[] = {
}; };
MODULE_DEVICE_TABLE(i2c, tmp421_id); MODULE_DEVICE_TABLE(i2c, tmp421_id);
static const struct of_device_id tmp421_of_match[] = { static const struct of_device_id __maybe_unused tmp421_of_match[] = {
{ {
.compatible = "ti,tmp421", .compatible = "ti,tmp421",
.data = (void *)2 .data = (void *)2
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册