diff options
Diffstat (limited to 'drivers/mtd/maps/ixp4xx.c')
-rw-r--r-- | drivers/mtd/maps/ixp4xx.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/mtd/maps/ixp4xx.c b/drivers/mtd/maps/ixp4xx.c index 30409015a3de..8b5410162d70 100644 --- a/drivers/mtd/maps/ixp4xx.c +++ b/drivers/mtd/maps/ixp4xx.c | |||
@@ -270,19 +270,7 @@ static struct platform_driver ixp4xx_flash_driver = { | |||
270 | }, | 270 | }, |
271 | }; | 271 | }; |
272 | 272 | ||
273 | static int __init ixp4xx_flash_init(void) | 273 | module_platform_driver(ixp4xx_flash_driver); |
274 | { | ||
275 | return platform_driver_register(&ixp4xx_flash_driver); | ||
276 | } | ||
277 | |||
278 | static void __exit ixp4xx_flash_exit(void) | ||
279 | { | ||
280 | platform_driver_unregister(&ixp4xx_flash_driver); | ||
281 | } | ||
282 | |||
283 | |||
284 | module_init(ixp4xx_flash_init); | ||
285 | module_exit(ixp4xx_flash_exit); | ||
286 | 274 | ||
287 | MODULE_LICENSE("GPL"); | 275 | MODULE_LICENSE("GPL"); |
288 | MODULE_DESCRIPTION("MTD map driver for Intel IXP4xx systems"); | 276 | MODULE_DESCRIPTION("MTD map driver for Intel IXP4xx systems"); |