diff options
Diffstat (limited to 'drivers/mtd/nand/mpc5121_nfc.c')
-rw-r--r-- | drivers/mtd/nand/mpc5121_nfc.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c index 5ede64706346..c240cf1af961 100644 --- a/drivers/mtd/nand/mpc5121_nfc.c +++ b/drivers/mtd/nand/mpc5121_nfc.c | |||
@@ -879,19 +879,7 @@ static struct platform_driver mpc5121_nfc_driver = { | |||
879 | }, | 879 | }, |
880 | }; | 880 | }; |
881 | 881 | ||
882 | static int __init mpc5121_nfc_init(void) | 882 | module_platform_driver(mpc5121_nfc_driver); |
883 | { | ||
884 | return platform_driver_register(&mpc5121_nfc_driver); | ||
885 | } | ||
886 | |||
887 | module_init(mpc5121_nfc_init); | ||
888 | |||
889 | static void __exit mpc5121_nfc_cleanup(void) | ||
890 | { | ||
891 | platform_driver_unregister(&mpc5121_nfc_driver); | ||
892 | } | ||
893 | |||
894 | module_exit(mpc5121_nfc_cleanup); | ||
895 | 883 | ||
896 | MODULE_AUTHOR("Freescale Semiconductor, Inc."); | 884 | MODULE_AUTHOR("Freescale Semiconductor, Inc."); |
897 | MODULE_DESCRIPTION("MPC5121 NAND MTD driver"); | 885 | MODULE_DESCRIPTION("MPC5121 NAND MTD driver"); |