cgroup: superblock can't be released with active dentries
[firefly-linux-kernel-4.4.55.git] / sound / soc / omap / omap4-hdmi-card.c
index 8671261ba16d3d831a72fc9ef74024f34af52939..28d689b2714db4e009190fa8af3b1c31481659b8 100644 (file)
@@ -74,6 +74,7 @@ static struct snd_soc_dai_link omap4_hdmi_dai = {
 
 static struct snd_soc_card snd_soc_omap4_hdmi = {
        .name = "OMAP4HDMI",
+       .owner = THIS_MODULE,
        .dai_link = &omap4_hdmi_dai,
        .num_links = 1,
 };
@@ -112,17 +113,7 @@ static struct platform_driver omap4_hdmi_driver = {
        .remove = __devexit_p(omap4_hdmi_remove),
 };
 
-static int __init omap4_hdmi_init(void)
-{
-       return platform_driver_register(&omap4_hdmi_driver);
-}
-module_init(omap4_hdmi_init);
-
-static void __exit omap4_hdmi_exit(void)
-{
-       platform_driver_unregister(&omap4_hdmi_driver);
-}
-module_exit(omap4_hdmi_exit);
+module_platform_driver(omap4_hdmi_driver);
 
 MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>");
 MODULE_DESCRIPTION("OMAP4 HDMI machine ASoC driver");