diff options
author | Adam Thomson <Adam.Thomson.Opensource@diasemi.com> | 2015-10-07 11:57:12 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-10-07 12:15:22 +0100 |
commit | b7ebd78d1d142e4e47c3547b08faf51218384583 (patch) | |
tree | 1fc3a253964cc228bf4ae6d350811317e3ac47d7 /sound/soc/codecs/da7219.c | |
parent | 4e929134eb8271abc9c52c371e056debfea6898b (diff) | |
download | linux-b7ebd78d1d142e4e47c3547b08faf51218384583.tar.bz2 |
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: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/da7219.c')
-rw-r--r-- | sound/soc/codecs/da7219.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index c86a83305fb7..adcc079ef801 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, |