diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-04-18 16:41:57 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-04-25 00:45:04 -0400 |
commit | 458622fcdc5b316de8d74efd7e610803f0308c14 (patch) | |
tree | ec3747414c56ee911e8bfc415137888abcc609a0 /drivers/ide/legacy | |
parent | 8e5443a09851d99084098ecc4066805aa2610d92 (diff) |
ATA/IDE: fix platform driver hotplug/coldplug
Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias
is prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable
ATA and IDE platform drivers, to re-enable auto loading.
NOTE: both ata/pata_platform.c and ide/legacy/ide_platform.c claim
to provide "the" platform_pata driver, and there's no build-time
mutual exclusion mechanism. This means that configs which enable
both drivers will make some trouble when hotplugging...
[dbrownell@users.sourceforge.net: more drivers, registration fixes]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Tejun Heo <htejun@gmail.com>
Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ide/legacy')
-rw-r--r-- | drivers/ide/legacy/ide_platform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ide/legacy/ide_platform.c b/drivers/ide/legacy/ide_platform.c index 249651e2da42..361b1bb544bf 100644 --- a/drivers/ide/legacy/ide_platform.c +++ b/drivers/ide/legacy/ide_platform.c | |||
@@ -130,6 +130,7 @@ static int __devexit plat_ide_remove(struct platform_device *pdev) | |||
130 | static struct platform_driver platform_ide_driver = { | 130 | static struct platform_driver platform_ide_driver = { |
131 | .driver = { | 131 | .driver = { |
132 | .name = "pata_platform", | 132 | .name = "pata_platform", |
133 | .owner = THIS_MODULE, | ||
133 | }, | 134 | }, |
134 | .probe = plat_ide_probe, | 135 | .probe = plat_ide_probe, |
135 | .remove = __devexit_p(plat_ide_remove), | 136 | .remove = __devexit_p(plat_ide_remove), |
@@ -147,6 +148,7 @@ static void __exit platform_ide_exit(void) | |||
147 | 148 | ||
148 | MODULE_DESCRIPTION("Platform IDE driver"); | 149 | MODULE_DESCRIPTION("Platform IDE driver"); |
149 | MODULE_LICENSE("GPL"); | 150 | MODULE_LICENSE("GPL"); |
151 | MODULE_ALIAS("platform:pata_platform"); | ||
150 | 152 | ||
151 | module_init(platform_ide_init); | 153 | module_init(platform_ide_init); |
152 | module_exit(platform_ide_exit); | 154 | module_exit(platform_ide_exit); |