Skip to contentSkip to conversation

scsi: fix platform driver hotplug/coldplug

PATCH New David Brownell 1 participant 1 message Apr 14, 2008 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: fix platform driver hotplug/coldplug

From: Kay Sievers <[email protected]>

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

[ [email protected]: more drivers, registration fixes ]
---
 drivers/scsi/jazz_esp.c   |    4 ++++
 drivers/scsi/sgiwd93.c    |    2 ++
 drivers/scsi/sni_53c710.c |    2 ++
 drivers/scsi/sun3x_esp.c  |    2 ++
 4 files changed, 10 insertions(+)
drivers/scsi/jazz_esp.c +4 -0
@@ -217,11 +217,15 @@ static int __devexit esp_jazz_remove(str
 	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,
 	},
 };
 
drivers/scsi/sgiwd93.c +2 -0
@@ -313,6 +313,7 @@ static struct platform_driver sgiwd93_dr
 	.remove = __devexit_p(sgiwd93_remove),
 	.driver = {
 		.name   = "sgiwd93"
+		.owner	= THIS_MODULE,
 	}
 };
 
@@ -332,3 +333,4 @@ module_exit(sgiwd93_module_exit);
 MODULE_DESCRIPTION("SGI WD33C93 driver");
 MODULE_AUTHOR("Ralf Baechle <[email protected]>");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:sgiwd93");
drivers/scsi/sni_53c710.c +2 -0
@@ -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_d
 	.remove	= __devexit_p(snirm710_driver_remove),
 	.driver	= {
 		.name	= "snirm_53c710",
+		.owner	= THIS_MODULE,
 	},
 };
 
drivers/scsi/sun3x_esp.c +2 -0
@@ -294,6 +294,7 @@ static struct platform_driver esp_sun3x_
 	.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");

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html