diff options
author | Daniel Mack <daniel@zonque.org> | 2018-05-21 23:54:49 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-05-22 11:57:18 +0100 |
commit | 9e2a87746757690fe951f06b0f336329f4a1f767 (patch) | |
tree | d0bf99cd7e28c5d04890b926ae9565ef695ac39d /sound/soc | |
parent | 05f38281c5e5272ff1d350ed8762b08c4f6d10fc (diff) |
ASoC: wm8782: add device-tree matching table
This is needed when the codec is instanciated from from a device tree.
Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm8782.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8782.c b/sound/soc/codecs/wm8782.c index 7949703f3d04..317db9a149a7 100644 --- 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, }; |