ALSA: Add missing .owner=THIS_MODULE to platform_driver definitions
Takashi Iwai [Mon, 2 Jul 2012 08:50:24 +0000 (10:50 +0200)]
Signed-off-by: Takashi Iwai <tiwai@suse.de>

13 files changed:
sound/atmel/abdac.c
sound/atmel/ac97c.c
sound/drivers/aloop.c
sound/drivers/dummy.c
sound/drivers/mpu401/mpu401.c
sound/drivers/mtpav.c
sound/drivers/mts64.c
sound/drivers/portman2x4.c
sound/drivers/serial-u16550.c
sound/drivers/virmidi.c
sound/ppc/powermac.c
sound/sh/aica.c
sound/sh/sh_dac_audio.c

index f7c2bb0..2e86639 100644 (file)
@@ -589,6 +589,7 @@ static struct platform_driver atmel_abdac_driver = {
        .remove         = __devexit_p(atmel_abdac_remove),
        .driver         = {
                .name   = "atmel_abdac",
+               .owner  = THIS_MODULE,
        },
        .suspend        = atmel_abdac_suspend,
        .resume         = atmel_abdac_resume,
index f5ded64..3d0ea82 100644 (file)
@@ -1210,6 +1210,7 @@ static struct platform_driver atmel_ac97c_driver = {
        .remove         = __devexit_p(atmel_ac97c_remove),
        .driver         = {
                .name   = "atmel_ac97c",
+               .owner  = THIS_MODULE,
        },
        .suspend        = atmel_ac97c_suspend,
        .resume         = atmel_ac97c_resume,
index 8b5c36f..3484411 100644 (file)
@@ -1209,7 +1209,8 @@ static struct platform_driver loopback_driver = {
        .resume         = loopback_resume,
 #endif
        .driver         = {
-               .name   = SND_LOOPBACK_DRIVER
+               .name   = SND_LOOPBACK_DRIVER,
+               .owner  = THIS_MODULE,
        },
 };
 
index ad9434f..bc79c44 100644 (file)
@@ -1094,7 +1094,8 @@ static struct platform_driver snd_dummy_driver = {
        .resume         = snd_dummy_resume,
 #endif
        .driver         = {
-               .name   = SND_DUMMY_DRIVER
+               .name   = SND_DUMMY_DRIVER,
+               .owner  = THIS_MODULE,
        },
 };
 
index 86f5fbc..bc03a20 100644 (file)
@@ -139,7 +139,8 @@ static struct platform_driver snd_mpu401_driver = {
        .probe          = snd_mpu401_probe,
        .remove         = __devexit_p(snd_mpu401_remove),
        .driver         = {
-               .name   = SND_MPU401_DRIVER
+               .name   = SND_MPU401_DRIVER,
+               .owner  = THIS_MODULE,
        },
 };
 
index 7693079..cad73af 100644 (file)
@@ -759,7 +759,8 @@ static struct platform_driver snd_mtpav_driver = {
        .probe          = snd_mtpav_probe,
        .remove         = __devexit_p(snd_mtpav_remove),
        .driver         = {
-               .name   = SND_MTPAV_DRIVER
+               .name   = SND_MTPAV_DRIVER,
+               .owner  = THIS_MODULE,
        },
 };
 
index 621e60e..2d5514b 100644 (file)
@@ -1040,7 +1040,8 @@ static struct platform_driver snd_mts64_driver = {
        .probe  = snd_mts64_probe,
        .remove = __devexit_p(snd_mts64_remove),
        .driver = {
-               .name = PLATFORM_DRIVER
+               .name = PLATFORM_DRIVER,
+               .owner  = THIS_MODULE,
        }
 };
 
index 3e32bd3..8364855 100644 (file)
@@ -829,7 +829,8 @@ static struct platform_driver snd_portman_driver = {
        .probe  = snd_portman_probe,
        .remove = __devexit_p(snd_portman_remove),
        .driver = {
-               .name = PLATFORM_DRIVER
+               .name = PLATFORM_DRIVER,
+               .owner  = THIS_MODULE,
        }
 };
 
index b2d0e8e..8670067 100644 (file)
@@ -995,7 +995,8 @@ static struct platform_driver snd_serial_driver = {
        .probe          = snd_serial_probe,
        .remove         = __devexit_p( snd_serial_remove),
        .driver         = {
-               .name   = SND_SERIAL_DRIVER
+               .name   = SND_SERIAL_DRIVER,
+               .owner  = THIS_MODULE,
        },
 };
 
index 9d97478..d7d514d 100644 (file)
@@ -142,7 +142,8 @@ static struct platform_driver snd_virmidi_driver = {
        .probe          = snd_virmidi_probe,
        .remove         = __devexit_p(snd_virmidi_remove),
        .driver         = {
-               .name   = SND_VIRMIDI_DRIVER
+               .name   = SND_VIRMIDI_DRIVER,
+               .owner  = THIS_MODULE,
        },
 };
 
index 5a4e263..aef54be 100644 (file)
@@ -169,7 +169,8 @@ static struct platform_driver snd_pmac_driver = {
        .resume         = snd_pmac_driver_resume,
 #endif
        .driver         = {
-               .name   = SND_PMAC_DRIVER
+               .name   = SND_PMAC_DRIVER,
+               .owner  = THIS_MODULE,
        },
 };
 
index 391a38c..d48b523 100644 (file)
@@ -654,7 +654,9 @@ static struct platform_driver snd_aica_driver = {
        .probe = snd_aica_probe,
        .remove = __devexit_p(snd_aica_remove),
        .driver = {
-                  .name = SND_AICA_DRIVER},
+               .name = SND_AICA_DRIVER,
+               .owner  = THIS_MODULE,
+       },
 };
 
 static int __init aica_init(void)
index f8b01c7..0a33947 100644 (file)
@@ -438,6 +438,7 @@ static struct platform_driver sh_dac_driver = {
        .remove = snd_sh_dac_remove,
        .driver = {
                .name = "dac_audio",
+               .owner  = THIS_MODULE,
        },
 };