Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Adam Thomson and committed by
Mark Brown
b7ebd78d 4e929134

+1 -1
+1 -1
sound/soc/codecs/da7219.c
··· 1932 1932 static struct i2c_driver da7219_i2c_driver = { 1933 1933 .driver = { 1934 1934 .name = "da7219", 1935 - .of_match_table = da7219_of_match, 1935 + .of_match_table = of_match_ptr(da7219_of_match), 1936 1936 }, 1937 1937 .probe = da7219_i2c_probe, 1938 1938 .remove = da7219_i2c_remove,