浏览代码

iio: dac: max5821: Set .of_match_table to OF device ID table

The driver has a OF device ID table but the struct i2c_driver
.of_match_table field is not set.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Javier Martinez Canillas 8 年之前
父节点
当前提交
7373340367
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/iio/dac/max5821.c

+ 1 - 0
drivers/iio/dac/max5821.c

@@ -392,6 +392,7 @@ MODULE_DEVICE_TABLE(of, max5821_of_match);
 static struct i2c_driver max5821_driver = {
 static struct i2c_driver max5821_driver = {
 	.driver = {
 	.driver = {
 		.name	= "max5821",
 		.name	= "max5821",
+		.of_match_table = max5821_of_match,
 		.pm     = MAX5821_PM_OPS,
 		.pm     = MAX5821_PM_OPS,
 	},
 	},
 	.probe		= max5821_probe,
 	.probe		= max5821_probe,