Message ID | 1455979079-9030-2-git-send-email-robert.jarzmik@free.fr (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c index 79e143625ac3..4e522302bb8a 100644 --- a/sound/soc/codecs/wm9713.c +++ b/sound/soc/codecs/wm9713.c @@ -1272,9 +1272,19 @@ static int wm9713_remove(struct platform_device *pdev) return 0; } +#ifdef CONFIG_OF +static const struct of_device_id wm9713_dt_ids[] = { + { .compatible = "wlf,wm9713", }, + { } +}; +MODULE_DEVICE_TABLE(of, wm9713_dt_ids); + +#endif + static struct platform_driver wm9713_codec_driver = { .driver = { .name = "wm9713-codec", + .of_match_table = of_match_ptr(wm9713_dt_ids), }, .probe = wm9713_probe,
Add the code to be able to use this codec in a devicetree platform. This is tested with the zylonite pxa310 board. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> --- sound/soc/codecs/wm9713.c | 10 ++++++++++ 1 file changed, 10 insertions(+)