diff options
Diffstat (limited to 'drivers/mtd/maps/sa1100-flash.c')
-rw-r--r-- | drivers/mtd/maps/sa1100-flash.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c index fa9c0a9670cd..502821997707 100644 --- a/drivers/mtd/maps/sa1100-flash.c +++ b/drivers/mtd/maps/sa1100-flash.c | |||
@@ -377,8 +377,8 @@ static int __exit sa1100_mtd_remove(struct platform_device *pdev) | |||
377 | static void sa1100_mtd_shutdown(struct platform_device *dev) | 377 | static void sa1100_mtd_shutdown(struct platform_device *dev) |
378 | { | 378 | { |
379 | struct sa_info *info = platform_get_drvdata(dev); | 379 | struct sa_info *info = platform_get_drvdata(dev); |
380 | if (info && info->mtd->suspend(info->mtd) == 0) | 380 | if (info && mtd_suspend(info->mtd) == 0) |
381 | info->mtd->resume(info->mtd); | 381 | mtd_resume(info->mtd); |
382 | } | 382 | } |
383 | #else | 383 | #else |
384 | #define sa1100_mtd_shutdown NULL | 384 | #define sa1100_mtd_shutdown NULL |
@@ -394,18 +394,7 @@ static struct platform_driver sa1100_mtd_driver = { | |||
394 | }, | 394 | }, |
395 | }; | 395 | }; |
396 | 396 | ||
397 | static int __init sa1100_mtd_init(void) | 397 | module_platform_driver(sa1100_mtd_driver); |
398 | { | ||
399 | return platform_driver_register(&sa1100_mtd_driver); | ||
400 | } | ||
401 | |||
402 | static void __exit sa1100_mtd_exit(void) | ||
403 | { | ||
404 | platform_driver_unregister(&sa1100_mtd_driver); | ||
405 | } | ||
406 | |||
407 | module_init(sa1100_mtd_init); | ||
408 | module_exit(sa1100_mtd_exit); | ||
409 | 398 | ||
410 | MODULE_AUTHOR("Nicolas Pitre"); | 399 | MODULE_AUTHOR("Nicolas Pitre"); |
411 | MODULE_DESCRIPTION("SA1100 CFI map driver"); | 400 | MODULE_DESCRIPTION("SA1100 CFI map driver"); |