summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/ak4104.c
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2012-10-07 19:51:24 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-10-15 04:47:20 +0400
commitac5dbea0d483bc0f6281f55261fab1dee7e6ac96 (patch)
tree63bd43a430a6784f94e2f5ea086684578cadc68f /sound/soc/codecs/ak4104.c
parent08201deb691527d583121f7c9f951f39d2f90ba9 (diff)
downloadlinux-ac5dbea0d483bc0f6281f55261fab1dee7e6ac96.tar.xz
ASoC: ak4104: add DT bindings
Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/ak4104.c')
-rw-r--r--sound/soc/codecs/ak4104.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/ak4104.c b/sound/soc/codecs/ak4104.c
index d14163f57224..d4d485808894 100644
--- a/sound/soc/codecs/ak4104.c
+++ b/sound/soc/codecs/ak4104.c
@@ -258,10 +258,17 @@ static int __devexit ak4104_spi_remove(struct spi_device *spi)
return 0;
}
+static const struct of_device_id ak4104_of_match[] = {
+ { .compatible = "asahi-kasei,ak4104", },
+ { }
+};
+MODULE_DEVICE_TABLE(of, ak4104_of_match);
+
static struct spi_driver ak4104_spi_driver = {
.driver = {
.name = DRV_NAME,
.owner = THIS_MODULE,
+ .of_match_table = ak4104_of_match,
},
.probe = ak4104_spi_probe,
.remove = __devexit_p(ak4104_spi_remove),