[alsa-devel] [PATCH 1/2] ASoC: da7219: Use of_match_ptr() when assigning match table
Adam Thomson
Adam.Thomson.Opensource at diasemi.com
Wed Oct 7 12:57:12 CEST 2015
Use of_match_ptr() to handle non-DT kernel scenario where match
table should be NULL.
Signed-off-by: Adam Thomson <Adam.Thomson.Opensource at diasemi.com>
---
sound/soc/codecs/da7219.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c
index c86a833..adcc079 100644
--- a/sound/soc/codecs/da7219.c
+++ b/sound/soc/codecs/da7219.c
@@ -1932,7 +1932,7 @@ MODULE_DEVICE_TABLE(i2c, da7219_i2c_id);
static struct i2c_driver da7219_i2c_driver = {
.driver = {
.name = "da7219",
- .of_match_table = da7219_of_match,
+ .of_match_table = of_match_ptr(da7219_of_match),
},
.probe = da7219_i2c_probe,
.remove = da7219_i2c_remove,
--
1.9.3
More information about the Alsa-devel
mailing list