X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=sound%2Fsoc%2Fmxs%2Fmxs-pcm.c;h=105f42a394df6460e80899f22c567f3ac6192c7f;hb=57f2685c16fa8e0cb86e4bc7c8ac33bfed943819;hp=4b48a169e89c7faf7cb83642143c6d06904b2081;hpb=e08b881a69d638175bfa99b5af4d72b731633ea7;p=cascardo%2Flinux.git diff --git a/sound/soc/mxs/mxs-pcm.c b/sound/soc/mxs/mxs-pcm.c index 4b48a169e89c..105f42a394df 100644 --- a/sound/soc/mxs/mxs-pcm.c +++ b/sound/soc/mxs/mxs-pcm.c @@ -346,14 +346,7 @@ static struct platform_driver mxs_pcm_driver = { .remove = __devexit_p(mxs_soc_platform_remove), }; -static int __init snd_mxs_pcm_init(void) -{ - return platform_driver_register(&mxs_pcm_driver); -} -module_init(snd_mxs_pcm_init); +module_platform_driver(mxs_pcm_driver); -static void __exit snd_mxs_pcm_exit(void) -{ - platform_driver_unregister(&mxs_pcm_driver); -} -module_exit(snd_mxs_pcm_exit); +MODULE_LICENSE("GPL"); +MODULE_ALIAS("platform:mxs-pcm-audio");