aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_at32.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-04-18 16:41:57 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-04-25 00:45:04 -0400
commit458622fcdc5b316de8d74efd7e610803f0308c14 (patch)
treeec3747414c56ee911e8bfc415137888abcc609a0 /drivers/ata/pata_at32.c
parent8e5443a09851d99084098ecc4066805aa2610d92 (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/ata/pata_at32.c')
-rw-r--r--drivers/ata/pata_at32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/pata_at32.c b/drivers/ata/pata_at32.c
index 3e8651d78952..5e104385d6a3 100644
--- a/drivers/ata/pata_at32.c
+++ b/drivers/ata/pata_at32.c
@@ -381,6 +381,9 @@ static int __exit pata_at32_remove(struct platform_device *pdev)
381 return 0; 381 return 0;
382} 382}
383 383
384/* work with hotplug and coldplug */
385MODULE_ALIAS("platform:at32_ide");
386
384static struct platform_driver pata_at32_driver = { 387static struct platform_driver pata_at32_driver = {
385 .remove = __exit_p(pata_at32_remove), 388 .remove = __exit_p(pata_at32_remove),
386 .driver = { 389 .driver = {