mtd: convert drivers/mtd/* to use module_platform_driver()
[deliverable/linux.git] / drivers / mtd / maps / bcm963xx-flash.c
index 736ca10ca9f11c0323d6062ef235f42a91f00727..56927f5302c10951e3ffa570770fcce31cc0cb57 100644 (file)
@@ -257,18 +257,7 @@ static struct platform_driver bcm63xx_mtd_dev = {
        },
 };
 
-static int __init bcm963xx_mtd_init(void)
-{
-       return platform_driver_register(&bcm63xx_mtd_dev);
-}
-
-static void __exit bcm963xx_mtd_exit(void)
-{
-       platform_driver_unregister(&bcm63xx_mtd_dev);
-}
-
-module_init(bcm963xx_mtd_init);
-module_exit(bcm963xx_mtd_exit);
+module_platform_driver(bcm63xx_mtd_dev);
 
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("Broadcom BCM63xx MTD driver for CFE and RedBoot");
This page took 0.028229 seconds and 5 git commands to generate.