aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2014-03-31 14:38:17 -0400
committerMark Brown <broonie@linaro.org>2014-04-01 08:34:22 -0400
commit3534b842a83549eb4d06613c616844c8762e9fd0 (patch)
treea574592e5a80353983bcd09399b6d284da45ff96 /sound
parent051389e250d018f7c38c8043c54aa8979d4b2cab (diff)
ASoC: tlv320aic23: add an of_match table
Add a device tree match table. This serves to make the driver's support of device tree more explicit. Perhaps the fallback for DT matching to using the i2c_device_id table will go away one day, since it fails in face of devices from different vendors with the same name. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/tlv320aic23-i2c.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/tlv320aic23-i2c.c b/sound/soc/codecs/tlv320aic23-i2c.c
index 20fc46092c2c..b73c94ebcc2a 100644
--- a/sound/soc/codecs/tlv320aic23-i2c.c
+++ b/sound/soc/codecs/tlv320aic23-i2c.c
@@ -43,9 +43,16 @@ static const struct i2c_device_id tlv320aic23_id[] = {
43 43
44MODULE_DEVICE_TABLE(i2c, tlv320aic23_id); 44MODULE_DEVICE_TABLE(i2c, tlv320aic23_id);
45 45
46static const struct of_device_id tlv320aic23_of_match[] = {
47 { .compatible = "ti,tlv320aic23", },
48 { }
49};
50MODULE_DEVICE_TABLE(of, tlv320aic23_of_match);
51
46static struct i2c_driver tlv320aic23_i2c_driver = { 52static struct i2c_driver tlv320aic23_i2c_driver = {
47 .driver = { 53 .driver = {
48 .name = "tlv320aic23-codec", 54 .name = "tlv320aic23-codec",
55 .of_match_table = of_match_ptr(tlv320aic23_of_match),
49 }, 56 },
50 .probe = tlv320aic23_i2c_probe, 57 .probe = tlv320aic23_i2c_probe,
51 .remove = __exit_p(tlv320aic23_i2c_remove), 58 .remove = __exit_p(tlv320aic23_i2c_remove),