diff options
Diffstat (limited to 'drivers/mtd/nand/pasemi_nand.c')
-rw-r--r-- | drivers/mtd/nand/pasemi_nand.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/mtd/nand/pasemi_nand.c b/drivers/mtd/nand/pasemi_nand.c index a97264ececd..974dbf8251c 100644 --- a/drivers/mtd/nand/pasemi_nand.c +++ b/drivers/mtd/nand/pasemi_nand.c | |||
@@ -230,17 +230,7 @@ static struct platform_driver pasemi_nand_driver = | |||
230 | .remove = pasemi_nand_remove, | 230 | .remove = pasemi_nand_remove, |
231 | }; | 231 | }; |
232 | 232 | ||
233 | static int __init pasemi_nand_init(void) | 233 | module_platform_driver(pasemi_nand_driver); |
234 | { | ||
235 | return platform_driver_register(&pasemi_nand_driver); | ||
236 | } | ||
237 | module_init(pasemi_nand_init); | ||
238 | |||
239 | static void __exit pasemi_nand_exit(void) | ||
240 | { | ||
241 | platform_driver_unregister(&pasemi_nand_driver); | ||
242 | } | ||
243 | module_exit(pasemi_nand_exit); | ||
244 | 234 | ||
245 | MODULE_LICENSE("GPL"); | 235 | MODULE_LICENSE("GPL"); |
246 | MODULE_AUTHOR("Egor Martovetsky <egor@pasemi.com>"); | 236 | MODULE_AUTHOR("Egor Martovetsky <egor@pasemi.com>"); |