aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/ak4554.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2013-07-04 22:42:49 -0400
committerMark Brown <broonie@linaro.org>2013-07-15 06:05:23 -0400
commitb25f77815021ec6e7400a82c4984b9c80699ce80 (patch)
tree555e38e2380f1031cba6fc776a82d6d59f26d942 /sound/soc/codecs/ak4554.c
parenta2911cdb1fd09de7c0da3938ffab1bc5cedda4f9 (diff)
ASoC: ak4554: add DT support
Support for loading the ak4554 codec module via devicetree. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/ak4554.c')
-rw-r--r--sound/soc/codecs/ak4554.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/ak4554.c b/sound/soc/codecs/ak4554.c
index c1a1733f8a35..6aed9c4d06d6 100644
--- a/sound/soc/codecs/ak4554.c
+++ b/sound/soc/codecs/ak4554.c
@@ -64,10 +64,17 @@ static int ak4554_soc_remove(struct platform_device *pdev)
64 return 0; 64 return 0;
65} 65}
66 66
67static struct of_device_id ak4554_of_match[] = {
68 { .compatible = "asahi-kasei,ak4554" },
69 {},
70};
71MODULE_DEVICE_TABLE(of, ak4554_of_match);
72
67static struct platform_driver ak4554_driver = { 73static struct platform_driver ak4554_driver = {
68 .driver = { 74 .driver = {
69 .name = "ak4554-adc-dac", 75 .name = "ak4554-adc-dac",
70 .owner = THIS_MODULE, 76 .owner = THIS_MODULE,
77 .of_match_table = ak4554_of_match,
71 }, 78 },
72 .probe = ak4554_soc_probe, 79 .probe = ak4554_soc_probe,
73 .remove = ak4554_soc_remove, 80 .remove = ak4554_soc_remove,