提交 b7ebd78d 编写于 作者: A Adam Thomson 提交者: Mark Brown

ASoC: da7219: Use of_match_ptr() when assigning match table

Use of_match_ptr() to handle non-DT kernel scenario where match
table should be NULL.
Signed-off-by: NAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 4e929134
...@@ -1932,7 +1932,7 @@ MODULE_DEVICE_TABLE(i2c, da7219_i2c_id); ...@@ -1932,7 +1932,7 @@ MODULE_DEVICE_TABLE(i2c, da7219_i2c_id);
static struct i2c_driver da7219_i2c_driver = { static struct i2c_driver da7219_i2c_driver = {
.driver = { .driver = {
.name = "da7219", .name = "da7219",
.of_match_table = da7219_of_match, .of_match_table = of_match_ptr(da7219_of_match),
}, },
.probe = da7219_i2c_probe, .probe = da7219_i2c_probe,
.remove = da7219_i2c_remove, .remove = da7219_i2c_remove,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册