diff options
Diffstat (limited to 'drivers/mtd/nand/bcm47xxnflash/main.c')
-rw-r--r-- | drivers/mtd/nand/bcm47xxnflash/main.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/mtd/nand/bcm47xxnflash/main.c b/drivers/mtd/nand/bcm47xxnflash/main.c index 7bae569fdc79..2dc3aa632f6c 100644 --- a/drivers/mtd/nand/bcm47xxnflash/main.c +++ b/drivers/mtd/nand/bcm47xxnflash/main.c | |||
@@ -85,22 +85,4 @@ static struct platform_driver bcm47xxnflash_driver = { | |||
85 | }, | 85 | }, |
86 | }; | 86 | }; |
87 | 87 | ||
88 | static int __init bcm47xxnflash_init(void) | 88 | module_platform_driver(bcm47xxnflash_driver); |
89 | { | ||
90 | int err; | ||
91 | |||
92 | err = platform_driver_register(&bcm47xxnflash_driver); | ||
93 | if (err) | ||
94 | pr_err("Failed to register bcm47xx nand flash driver: %d\n", | ||
95 | err); | ||
96 | |||
97 | return err; | ||
98 | } | ||
99 | |||
100 | static void __exit bcm47xxnflash_exit(void) | ||
101 | { | ||
102 | platform_driver_unregister(&bcm47xxnflash_driver); | ||
103 | } | ||
104 | |||
105 | module_init(bcm47xxnflash_init); | ||
106 | module_exit(bcm47xxnflash_exit); | ||