diff options
Diffstat (limited to 'drivers/mtd/maps/sa1100-flash.c')
-rw-r--r-- | drivers/mtd/maps/sa1100-flash.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c index fa9c0a9670c..ac3a290748c 100644 --- a/drivers/mtd/maps/sa1100-flash.c +++ b/drivers/mtd/maps/sa1100-flash.c | |||
@@ -394,18 +394,7 @@ static struct platform_driver sa1100_mtd_driver = { | |||
394 | }, | 394 | }, |
395 | }; | 395 | }; |
396 | 396 | ||
397 | static int __init sa1100_mtd_init(void) | 397 | module_platform_driver(sa1100_mtd_driver); |
398 | { | ||
399 | return platform_driver_register(&sa1100_mtd_driver); | ||
400 | } | ||
401 | |||
402 | static void __exit sa1100_mtd_exit(void) | ||
403 | { | ||
404 | platform_driver_unregister(&sa1100_mtd_driver); | ||
405 | } | ||
406 | |||
407 | module_init(sa1100_mtd_init); | ||
408 | module_exit(sa1100_mtd_exit); | ||
409 | 398 | ||
410 | MODULE_AUTHOR("Nicolas Pitre"); | 399 | MODULE_AUTHOR("Nicolas Pitre"); |
411 | MODULE_DESCRIPTION("SA1100 CFI map driver"); | 400 | MODULE_DESCRIPTION("SA1100 CFI map driver"); |