diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-04-18 16:57:19 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-27 13:33:04 -0400 |
commit | ecc1241e80a0bdc854b1602a44be3ad106753d4f (patch) | |
tree | 8033fabd18415681378506c0c4e597a3a6675f66 /drivers | |
parent | 980b306a297725d4f25c779ca15086de757acadf (diff) |
[SCSI] jazz_esp, sgiwd93, sni_53c710, sun3x_esp: fix platform driver hotplug/coldplug
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/jazz_esp.c | 4 | ||||
-rw-r--r-- | drivers/scsi/sgiwd93.c | 4 | ||||
-rw-r--r-- | drivers/scsi/sni_53c710.c | 2 | ||||
-rw-r--r-- | drivers/scsi/sun3x_esp.c | 2 |
4 files changed, 11 insertions, 1 deletions
diff --git a/drivers/scsi/jazz_esp.c b/drivers/scsi/jazz_esp.c index 5d231015bb20..b2d481dd3750 100644 --- a/drivers/scsi/jazz_esp.c +++ b/drivers/scsi/jazz_esp.c | |||
@@ -217,11 +217,15 @@ static int __devexit esp_jazz_remove(struct platform_device *dev) | |||
217 | return 0; | 217 | return 0; |
218 | } | 218 | } |
219 | 219 | ||
220 | /* work with hotplug and coldplug */ | ||
221 | MODULE_ALIAS("platform:jazz_esp"); | ||
222 | |||
220 | static struct platform_driver esp_jazz_driver = { | 223 | static struct platform_driver esp_jazz_driver = { |
221 | .probe = esp_jazz_probe, | 224 | .probe = esp_jazz_probe, |
222 | .remove = __devexit_p(esp_jazz_remove), | 225 | .remove = __devexit_p(esp_jazz_remove), |
223 | .driver = { | 226 | .driver = { |
224 | .name = "jazz_esp", | 227 | .name = "jazz_esp", |
228 | .owner = THIS_MODULE, | ||
225 | }, | 229 | }, |
226 | }; | 230 | }; |
227 | 231 | ||
diff --git a/drivers/scsi/sgiwd93.c b/drivers/scsi/sgiwd93.c index 03e359670506..31fe6051c799 100644 --- a/drivers/scsi/sgiwd93.c +++ b/drivers/scsi/sgiwd93.c | |||
@@ -313,7 +313,8 @@ static struct platform_driver sgiwd93_driver = { | |||
313 | .probe = sgiwd93_probe, | 313 | .probe = sgiwd93_probe, |
314 | .remove = __devexit_p(sgiwd93_remove), | 314 | .remove = __devexit_p(sgiwd93_remove), |
315 | .driver = { | 315 | .driver = { |
316 | .name = "sgiwd93" | 316 | .name = "sgiwd93", |
317 | .owner = THIS_MODULE, | ||
317 | } | 318 | } |
318 | }; | 319 | }; |
319 | 320 | ||
@@ -333,3 +334,4 @@ module_exit(sgiwd93_module_exit); | |||
333 | MODULE_DESCRIPTION("SGI WD33C93 driver"); | 334 | MODULE_DESCRIPTION("SGI WD33C93 driver"); |
334 | MODULE_AUTHOR("Ralf Baechle <ralf@linux-mips.org>"); | 335 | MODULE_AUTHOR("Ralf Baechle <ralf@linux-mips.org>"); |
335 | MODULE_LICENSE("GPL"); | 336 | MODULE_LICENSE("GPL"); |
337 | MODULE_ALIAS("platform:sgiwd93"); | ||
diff --git a/drivers/scsi/sni_53c710.c b/drivers/scsi/sni_53c710.c index 0a6b45b1b003..2bbef4c45a0d 100644 --- a/drivers/scsi/sni_53c710.c +++ b/drivers/scsi/sni_53c710.c | |||
@@ -53,6 +53,7 @@ | |||
53 | MODULE_AUTHOR("Thomas Bogendörfer"); | 53 | MODULE_AUTHOR("Thomas Bogendörfer"); |
54 | MODULE_DESCRIPTION("SNI RM 53c710 SCSI Driver"); | 54 | MODULE_DESCRIPTION("SNI RM 53c710 SCSI Driver"); |
55 | MODULE_LICENSE("GPL"); | 55 | MODULE_LICENSE("GPL"); |
56 | MODULE_ALIAS("platform:snirm_53c710"); | ||
56 | 57 | ||
57 | #define SNIRM710_CLOCK 32 | 58 | #define SNIRM710_CLOCK 32 |
58 | 59 | ||
@@ -136,6 +137,7 @@ static struct platform_driver snirm710_driver = { | |||
136 | .remove = __devexit_p(snirm710_driver_remove), | 137 | .remove = __devexit_p(snirm710_driver_remove), |
137 | .driver = { | 138 | .driver = { |
138 | .name = "snirm_53c710", | 139 | .name = "snirm_53c710", |
140 | .owner = THIS_MODULE, | ||
139 | }, | 141 | }, |
140 | }; | 142 | }; |
141 | 143 | ||
diff --git a/drivers/scsi/sun3x_esp.c b/drivers/scsi/sun3x_esp.c index 06152c7fa689..7514b3a0390e 100644 --- a/drivers/scsi/sun3x_esp.c +++ b/drivers/scsi/sun3x_esp.c | |||
@@ -294,6 +294,7 @@ static struct platform_driver esp_sun3x_driver = { | |||
294 | .remove = __devexit_p(esp_sun3x_remove), | 294 | .remove = __devexit_p(esp_sun3x_remove), |
295 | .driver = { | 295 | .driver = { |
296 | .name = "sun3x_esp", | 296 | .name = "sun3x_esp", |
297 | .owner = THIS_MODULE, | ||
297 | }, | 298 | }, |
298 | }; | 299 | }; |
299 | 300 | ||
@@ -314,3 +315,4 @@ MODULE_VERSION(DRV_VERSION); | |||
314 | 315 | ||
315 | module_init(sun3x_esp_init); | 316 | module_init(sun3x_esp_init); |
316 | module_exit(sun3x_esp_exit); | 317 | module_exit(sun3x_esp_exit); |
318 | MODULE_ALIAS("platform:sun3x_esp"); | ||