diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-04-18 16:44:26 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-04-22 09:14:26 -0400 |
commit | 41d867c9ac852ce17069f8ae680f25877be97942 (patch) | |
tree | 42a2c6d0b5c1cf557532a677711a6c7b5c81de24 /drivers/mtd/maps/sa1100-flash.c | |
parent | c27e9b80bee039cfefa51c7af08b01eaab3dfb61 (diff) |
[MTD] [MAPS] fix platform driver hotplug/coldplug
Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable MTD mapping
platform drivers, to re-enable auto loading.
NOTE oddness with physmap ... it's a legacy driver in some configs, which
means it can't always support hotplugging. (Not that most of these mapping
drivers would often be used as modules...)
[dbrownell@users.sourceforge.net: bugfix, more drivers, registration fixes]
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: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/maps/sa1100-flash.c')
-rw-r--r-- | drivers/mtd/maps/sa1100-flash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c index f904e6bd02e0..c7d5a52a2d55 100644 --- a/drivers/mtd/maps/sa1100-flash.c +++ b/drivers/mtd/maps/sa1100-flash.c | |||
@@ -456,6 +456,7 @@ static struct platform_driver sa1100_mtd_driver = { | |||
456 | .shutdown = sa1100_mtd_shutdown, | 456 | .shutdown = sa1100_mtd_shutdown, |
457 | .driver = { | 457 | .driver = { |
458 | .name = "flash", | 458 | .name = "flash", |
459 | .owner = THIS_MODULE, | ||
459 | }, | 460 | }, |
460 | }; | 461 | }; |
461 | 462 | ||
@@ -475,3 +476,4 @@ module_exit(sa1100_mtd_exit); | |||
475 | MODULE_AUTHOR("Nicolas Pitre"); | 476 | MODULE_AUTHOR("Nicolas Pitre"); |
476 | MODULE_DESCRIPTION("SA1100 CFI map driver"); | 477 | MODULE_DESCRIPTION("SA1100 CFI map driver"); |
477 | MODULE_LICENSE("GPL"); | 478 | MODULE_LICENSE("GPL"); |
479 | MODULE_ALIAS("platform:flash"); | ||