Register the wm9712 DAIs on module load
Signed-off-by: Jon Smirl jonsmirl@gmail.com --- 0 files changed, 0 insertions(+), 0 deletions(-)
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c index 1fd4e88..49ad987 100644 --- a/sound/soc/codecs/wm9712.c +++ b/sound/soc/codecs/wm9712.c @@ -742,6 +742,18 @@ struct snd_soc_codec_device soc_codec_dev_wm9712 = { }; EXPORT_SYMBOL_GPL(soc_codec_dev_wm9712);
+static int __init wm9712_modinit(void) +{ + return snd_soc_register_dais(wm9712_dai, ARRAY_SIZE(wm9712_dai)); +} +module_init(wm9712_modinit); + +static void __exit wm9712_exit(void) +{ + snd_soc_unregister_dais(wm9712_dai, ARRAY_SIZE(wm9712_dai)); +} +module_exit(wm9712_exit); + MODULE_DESCRIPTION("ASoC WM9711/WM9712 driver"); MODULE_AUTHOR("Liam Girdwood"); MODULE_LICENSE("GPL");