diff options
Diffstat (limited to 'drivers/mtd/maps/latch-addr-flash.c')
-rw-r--r-- | drivers/mtd/maps/latch-addr-flash.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/mtd/maps/latch-addr-flash.c b/drivers/mtd/maps/latch-addr-flash.c index 119baa7d7477..8fed58e3a4a8 100644 --- a/drivers/mtd/maps/latch-addr-flash.c +++ b/drivers/mtd/maps/latch-addr-flash.c | |||
@@ -223,17 +223,7 @@ static struct platform_driver latch_addr_flash_driver = { | |||
223 | }, | 223 | }, |
224 | }; | 224 | }; |
225 | 225 | ||
226 | static int __init latch_addr_flash_init(void) | 226 | module_platform_driver(latch_addr_flash_driver); |
227 | { | ||
228 | return platform_driver_register(&latch_addr_flash_driver); | ||
229 | } | ||
230 | module_init(latch_addr_flash_init); | ||
231 | |||
232 | static void __exit latch_addr_flash_exit(void) | ||
233 | { | ||
234 | platform_driver_unregister(&latch_addr_flash_driver); | ||
235 | } | ||
236 | module_exit(latch_addr_flash_exit); | ||
237 | 227 | ||
238 | MODULE_AUTHOR("David Griego <dgriego@mvista.com>"); | 228 | MODULE_AUTHOR("David Griego <dgriego@mvista.com>"); |
239 | MODULE_DESCRIPTION("MTD map driver for flashes addressed physically with upper " | 229 | MODULE_DESCRIPTION("MTD map driver for flashes addressed physically with upper " |