]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] jazz_esp, sgiwd93, sni_53c710, sun3x_esp: fix platform driver hotplug/coldplug
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 18 Apr 2008 20:57:19 +0000 (13:57 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 27 Apr 2008 17:33:04 +0000 (12:33 -0500)
Since

commit 43cc71eed1250755986da4c0f9898f9a635cb3bf
Author: Kay Sievers <kay.sievers@vrfy.org>
Date:   Sat Aug 18 04:40:39 2007 +0200

    platform: prefix MODALIAS with "platform:"

the platform modalias is prefixed with "platform:". Add MODULE_ALIAS()
to the hotpluggable SCSI platform drivers, to re-enable auto loading.

[dbrownell@users.sourceforge.net: more drivers, registration fixes]
[akpm@linux-foundation.org: fix sgiwd93.c]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/jazz_esp.c
drivers/scsi/sgiwd93.c
drivers/scsi/sni_53c710.c
drivers/scsi/sun3x_esp.c

index 5d231015bb2058abebe009fbfdadae98f85cf8d9..b2d481dd37505f43f25d9c0cc79659e900bb25ca 100644 (file)
@@ -217,11 +217,15 @@ static int __devexit esp_jazz_remove(struct platform_device *dev)
        return 0;
 }
 
+/* work with hotplug and coldplug */
+MODULE_ALIAS("platform:jazz_esp");
+
 static struct platform_driver esp_jazz_driver = {
        .probe          = esp_jazz_probe,
        .remove         = __devexit_p(esp_jazz_remove),
        .driver = {
                .name   = "jazz_esp",
+               .owner  = THIS_MODULE,
        },
 };
 
index 03e359670506cf1403463616a1c410d72a709fab..31fe6051c799869f76713ffa674d4d795baf73dc 100644 (file)
@@ -313,7 +313,8 @@ static struct platform_driver sgiwd93_driver = {
        .probe  = sgiwd93_probe,
        .remove = __devexit_p(sgiwd93_remove),
        .driver = {
-               .name   = "sgiwd93"
+               .name   = "sgiwd93",
+               .owner  = THIS_MODULE,
        }
 };
 
@@ -333,3 +334,4 @@ module_exit(sgiwd93_module_exit);
 MODULE_DESCRIPTION("SGI WD33C93 driver");
 MODULE_AUTHOR("Ralf Baechle <ralf@linux-mips.org>");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:sgiwd93");
index 0a6b45b1b003a7a0d64a2dd896355bfb15b9e8a0..2bbef4c45a0d64404c11dfc1ae1fbc0b071d0c21 100644 (file)
@@ -53,6 +53,7 @@
 MODULE_AUTHOR("Thomas Bogendörfer");
 MODULE_DESCRIPTION("SNI RM 53c710 SCSI Driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:snirm_53c710");
 
 #define SNIRM710_CLOCK 32
 
@@ -136,6 +137,7 @@ static struct platform_driver snirm710_driver = {
        .remove = __devexit_p(snirm710_driver_remove),
        .driver = {
                .name   = "snirm_53c710",
+               .owner  = THIS_MODULE,
        },
 };
 
index 06152c7fa689bfd21e6dbd7df465ea060a0dcd85..7514b3a0390e5b19b75689a4493047a7ef3d67be 100644 (file)
@@ -294,6 +294,7 @@ static struct platform_driver esp_sun3x_driver = {
        .remove         = __devexit_p(esp_sun3x_remove),
        .driver = {
                .name   = "sun3x_esp",
+               .owner  = THIS_MODULE,
        },
 };
 
@@ -314,3 +315,4 @@ MODULE_VERSION(DRV_VERSION);
 
 module_init(sun3x_esp_init);
 module_exit(sun3x_esp_exit);
+MODULE_ALIAS("platform:sun3x_esp");