ASoC: ak4554: add DT support
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 5 Jul 2013 02:42:49 +0000 (19:42 -0700)
committerMark Brown <broonie@linaro.org>
Mon, 15 Jul 2013 10:05:23 +0000 (11:05 +0100)
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>
Documentation/devicetree/bindings/sound/ak4554.c [new file with mode: 0644]
sound/soc/codecs/ak4554.c

diff --git a/Documentation/devicetree/bindings/sound/ak4554.c b/Documentation/devicetree/bindings/sound/ak4554.c
new file mode 100644 (file)
index 0000000..934fa02
--- /dev/null
@@ -0,0 +1,11 @@
+AK4554 ADC/DAC
+
+Required properties:
+
+  - compatible : "asahi-kasei,ak4554"
+
+Example:
+
+ak4554-adc-dac {
+       compatible = "asahi-kasei,ak4554";
+};
index c1a1733f8a354dfdbfa6edced91c26b9ed160bd4..6aed9c4d06d64162f44f2a24272fb97fba513847 100644 (file)
@@ -64,10 +64,17 @@ static int ak4554_soc_remove(struct platform_device *pdev)
        return 0;
 }
 
+static struct of_device_id ak4554_of_match[] = {
+       { .compatible = "asahi-kasei,ak4554" },
+       {},
+};
+MODULE_DEVICE_TABLE(of, ak4554_of_match);
+
 static struct platform_driver ak4554_driver = {
        .driver = {
                .name = "ak4554-adc-dac",
                .owner = THIS_MODULE,
+               .of_match_table = ak4554_of_match,
        },
        .probe  = ak4554_soc_probe,
        .remove = ak4554_soc_remove,