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 | |
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')
-rw-r--r-- | drivers/mtd/maps/bast-flash.c | 1 | ||||
-rw-r--r-- | drivers/mtd/maps/integrator-flash.c | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/ixp2000.c | 3 | ||||
-rw-r--r-- | drivers/mtd/maps/ixp4xx.c | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/omap_nor.c | 3 | ||||
-rw-r--r-- | drivers/mtd/maps/physmap.c | 8 | ||||
-rw-r--r-- | drivers/mtd/maps/plat-ram.c | 3 | ||||
-rw-r--r-- | drivers/mtd/maps/sa1100-flash.c | 2 |
8 files changed, 22 insertions, 2 deletions
diff --git a/drivers/mtd/maps/bast-flash.c b/drivers/mtd/maps/bast-flash.c index 59fea2a89804..1f492062f8ca 100644 --- a/drivers/mtd/maps/bast-flash.c +++ b/drivers/mtd/maps/bast-flash.c | |||
@@ -223,3 +223,4 @@ module_exit(bast_flash_exit); | |||
223 | MODULE_LICENSE("GPL"); | 223 | MODULE_LICENSE("GPL"); |
224 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); | 224 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); |
225 | MODULE_DESCRIPTION("BAST MTD Map driver"); | 225 | MODULE_DESCRIPTION("BAST MTD Map driver"); |
226 | MODULE_ALIAS("platform:bast-nor"); | ||
diff --git a/drivers/mtd/maps/integrator-flash.c b/drivers/mtd/maps/integrator-flash.c index 6946d802e6f6..325c8880c437 100644 --- a/drivers/mtd/maps/integrator-flash.c +++ b/drivers/mtd/maps/integrator-flash.c | |||
@@ -190,6 +190,7 @@ static struct platform_driver armflash_driver = { | |||
190 | .remove = armflash_remove, | 190 | .remove = armflash_remove, |
191 | .driver = { | 191 | .driver = { |
192 | .name = "armflash", | 192 | .name = "armflash", |
193 | .owner = THIS_MODULE, | ||
193 | }, | 194 | }, |
194 | }; | 195 | }; |
195 | 196 | ||
@@ -209,3 +210,4 @@ module_exit(armflash_exit); | |||
209 | MODULE_AUTHOR("ARM Ltd"); | 210 | MODULE_AUTHOR("ARM Ltd"); |
210 | MODULE_DESCRIPTION("ARM Integrator CFI map driver"); | 211 | MODULE_DESCRIPTION("ARM Integrator CFI map driver"); |
211 | MODULE_LICENSE("GPL"); | 212 | MODULE_LICENSE("GPL"); |
213 | MODULE_ALIAS("platform:armflash"); | ||
diff --git a/drivers/mtd/maps/ixp2000.c b/drivers/mtd/maps/ixp2000.c index c26488a1793a..c8396b8574c4 100644 --- a/drivers/mtd/maps/ixp2000.c +++ b/drivers/mtd/maps/ixp2000.c | |||
@@ -253,6 +253,7 @@ static struct platform_driver ixp2000_flash_driver = { | |||
253 | .remove = ixp2000_flash_remove, | 253 | .remove = ixp2000_flash_remove, |
254 | .driver = { | 254 | .driver = { |
255 | .name = "IXP2000-Flash", | 255 | .name = "IXP2000-Flash", |
256 | .owner = THIS_MODULE, | ||
256 | }, | 257 | }, |
257 | }; | 258 | }; |
258 | 259 | ||
@@ -270,4 +271,4 @@ module_init(ixp2000_flash_init); | |||
270 | module_exit(ixp2000_flash_exit); | 271 | module_exit(ixp2000_flash_exit); |
271 | MODULE_LICENSE("GPL"); | 272 | MODULE_LICENSE("GPL"); |
272 | MODULE_AUTHOR("Deepak Saxena <dsaxena@plexity.net>"); | 273 | MODULE_AUTHOR("Deepak Saxena <dsaxena@plexity.net>"); |
273 | 274 | MODULE_ALIAS("platform:IXP2000-Flash"); | |
diff --git a/drivers/mtd/maps/ixp4xx.c b/drivers/mtd/maps/ixp4xx.c index 7a828e3e6446..01f19a4714b5 100644 --- a/drivers/mtd/maps/ixp4xx.c +++ b/drivers/mtd/maps/ixp4xx.c | |||
@@ -275,6 +275,7 @@ static struct platform_driver ixp4xx_flash_driver = { | |||
275 | .remove = ixp4xx_flash_remove, | 275 | .remove = ixp4xx_flash_remove, |
276 | .driver = { | 276 | .driver = { |
277 | .name = "IXP4XX-Flash", | 277 | .name = "IXP4XX-Flash", |
278 | .owner = THIS_MODULE, | ||
278 | }, | 279 | }, |
279 | }; | 280 | }; |
280 | 281 | ||
@@ -295,3 +296,4 @@ module_exit(ixp4xx_flash_exit); | |||
295 | MODULE_LICENSE("GPL"); | 296 | MODULE_LICENSE("GPL"); |
296 | MODULE_DESCRIPTION("MTD map driver for Intel IXP4xx systems"); | 297 | MODULE_DESCRIPTION("MTD map driver for Intel IXP4xx systems"); |
297 | MODULE_AUTHOR("Deepak Saxena"); | 298 | MODULE_AUTHOR("Deepak Saxena"); |
299 | MODULE_ALIAS("platform:IXP4XX-Flash"); | ||
diff --git a/drivers/mtd/maps/omap_nor.c b/drivers/mtd/maps/omap_nor.c index e8d9ae535673..676248ff4a75 100644 --- a/drivers/mtd/maps/omap_nor.c +++ b/drivers/mtd/maps/omap_nor.c | |||
@@ -156,6 +156,7 @@ static struct platform_driver omapflash_driver = { | |||
156 | .remove = __devexit_p(omapflash_remove), | 156 | .remove = __devexit_p(omapflash_remove), |
157 | .driver = { | 157 | .driver = { |
158 | .name = "omapflash", | 158 | .name = "omapflash", |
159 | .owner = THIS_MODULE, | ||
159 | }, | 160 | }, |
160 | }; | 161 | }; |
161 | 162 | ||
@@ -174,4 +175,4 @@ module_exit(omapflash_exit); | |||
174 | 175 | ||
175 | MODULE_LICENSE("GPL"); | 176 | MODULE_LICENSE("GPL"); |
176 | MODULE_DESCRIPTION("MTD NOR map driver for TI OMAP boards"); | 177 | MODULE_DESCRIPTION("MTD NOR map driver for TI OMAP boards"); |
177 | 178 | MODULE_ALIAS("platform:omapflash"); | |
diff --git a/drivers/mtd/maps/physmap.c b/drivers/mtd/maps/physmap.c index bc4649a17b9d..183255fcfdcb 100644 --- a/drivers/mtd/maps/physmap.c +++ b/drivers/mtd/maps/physmap.c | |||
@@ -242,6 +242,7 @@ static struct platform_driver physmap_flash_driver = { | |||
242 | .shutdown = physmap_flash_shutdown, | 242 | .shutdown = physmap_flash_shutdown, |
243 | .driver = { | 243 | .driver = { |
244 | .name = "physmap-flash", | 244 | .name = "physmap-flash", |
245 | .owner = THIS_MODULE, | ||
245 | }, | 246 | }, |
246 | }; | 247 | }; |
247 | 248 | ||
@@ -319,3 +320,10 @@ module_exit(physmap_exit); | |||
319 | MODULE_LICENSE("GPL"); | 320 | MODULE_LICENSE("GPL"); |
320 | MODULE_AUTHOR("David Woodhouse <dwmw2@infradead.org>"); | 321 | MODULE_AUTHOR("David Woodhouse <dwmw2@infradead.org>"); |
321 | MODULE_DESCRIPTION("Generic configurable MTD map driver"); | 322 | MODULE_DESCRIPTION("Generic configurable MTD map driver"); |
323 | |||
324 | /* legacy platform drivers can't hotplug or coldplg */ | ||
325 | #ifndef PHYSMAP_COMPAT | ||
326 | /* work with hotplug and coldplug */ | ||
327 | MODULE_ALIAS("platform:physmap-flash"); | ||
328 | #endif | ||
329 | |||
diff --git a/drivers/mtd/maps/plat-ram.c b/drivers/mtd/maps/plat-ram.c index 894c0b271289..7160e0eb09af 100644 --- a/drivers/mtd/maps/plat-ram.c +++ b/drivers/mtd/maps/plat-ram.c | |||
@@ -251,6 +251,9 @@ static int platram_probe(struct platform_device *pdev) | |||
251 | 251 | ||
252 | /* device driver info */ | 252 | /* device driver info */ |
253 | 253 | ||
254 | /* work with hotplug and coldplug */ | ||
255 | MODULE_ALIAS("platform:mtd-ram"); | ||
256 | |||
254 | static struct platform_driver platram_driver = { | 257 | static struct platform_driver platram_driver = { |
255 | .probe = platram_probe, | 258 | .probe = platram_probe, |
256 | .remove = platram_remove, | 259 | .remove = platram_remove, |
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"); | ||