projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05f3828
)
ASoC: wm8782: add device-tree matching table
author
Daniel Mack
<
[email protected]
>
Mon, 21 May 2018 21:54:49 +0000
(23:54 +0200)
committer
Mark Brown
<
[email protected]
>
Tue, 22 May 2018 10:57:18 +0000
(11:57 +0100)
This is needed when the codec is instanciated from from a device tree.
Signed-off-by: Daniel Mack <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/wm8782.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm8782.c
b/sound/soc/codecs/wm8782.c
index 7949703f3d0482427002c87a07fbde124e5fcb7e..317db9a149a737642614d5f9f4f2925aaf381193 100644
(file)
--- a/
sound/soc/codecs/wm8782.c
+++ b/
sound/soc/codecs/wm8782.c
@@
-67,9
+67,18
@@
static int wm8782_probe(struct platform_device *pdev)
&soc_component_dev_wm8782, &wm8782_dai, 1);
}
+#ifdef CONFIG_OF
+static const struct of_device_id wm8782_of_match[] = {
+ { .compatible = "wlf,wm8782", },
+ { }
+};
+MODULE_DEVICE_TABLE(of, wm8782_of_match);
+#endif
+
static struct platform_driver wm8782_codec_driver = {
.driver = {
.name = "wm8782",
+ .of_match_table = of_match_ptr(wm8782_of_match),
},
.probe = wm8782_probe,
};