diff options
Diffstat (limited to 'drivers/mtd/maps/gpio-addr-flash.c')
-rw-r--r-- | drivers/mtd/maps/gpio-addr-flash.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/mtd/maps/gpio-addr-flash.c b/drivers/mtd/maps/gpio-addr-flash.c index 1ec66f031c51..33cce895859f 100644 --- a/drivers/mtd/maps/gpio-addr-flash.c +++ b/drivers/mtd/maps/gpio-addr-flash.c | |||
@@ -279,17 +279,7 @@ static struct platform_driver gpio_flash_driver = { | |||
279 | }, | 279 | }, |
280 | }; | 280 | }; |
281 | 281 | ||
282 | static int __init gpio_flash_init(void) | 282 | module_platform_driver(gpio_flash_driver); |
283 | { | ||
284 | return platform_driver_register(&gpio_flash_driver); | ||
285 | } | ||
286 | module_init(gpio_flash_init); | ||
287 | |||
288 | static void __exit gpio_flash_exit(void) | ||
289 | { | ||
290 | platform_driver_unregister(&gpio_flash_driver); | ||
291 | } | ||
292 | module_exit(gpio_flash_exit); | ||
293 | 283 | ||
294 | MODULE_AUTHOR("Mike Frysinger <vapier@gentoo.org>"); | 284 | MODULE_AUTHOR("Mike Frysinger <vapier@gentoo.org>"); |
295 | MODULE_DESCRIPTION("MTD map driver for flashes addressed physically and with gpios"); | 285 | MODULE_DESCRIPTION("MTD map driver for flashes addressed physically and with gpios"); |