diff options
-rw-r--r-- | Documentation/devicetree/bindings/sound/ak4554.c | 11 | ||||
-rw-r--r-- | sound/soc/codecs/ak4554.c | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/ak4554.c b/Documentation/devicetree/bindings/sound/ak4554.c new file mode 100644 index 000000000000..934fa02754b3 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ak4554.c | |||
@@ -0,0 +1,11 @@ | |||
1 | AK4554 ADC/DAC | ||
2 | |||
3 | Required properties: | ||
4 | |||
5 | - compatible : "asahi-kasei,ak4554" | ||
6 | |||
7 | Example: | ||
8 | |||
9 | ak4554-adc-dac { | ||
10 | compatible = "asahi-kasei,ak4554"; | ||
11 | }; | ||
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 | ||
67 | static struct of_device_id ak4554_of_match[] = { | ||
68 | { .compatible = "asahi-kasei,ak4554" }, | ||
69 | {}, | ||
70 | }; | ||
71 | MODULE_DEVICE_TABLE(of, ak4554_of_match); | ||
72 | |||
67 | static struct platform_driver ak4554_driver = { | 73 | static 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, |