1 Date: Thu, 30 May 2013 10:22:16 +0800
2 From: Libo Chen <clbchenlibo.chen@huawei.com>
3 Subject: [PATCH RESEND 2/2] mtd: bcm47: convert to module_platform_driver
6 convert to module_platform_driver instead of init/exit
8 Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
9 Signed-off-by: Libo chen <libo.chen@huawei.com>
11 drivers/mtd/devices/bcm47xxsflash.c | 20 +-------------------
12 1 files changed, 1 insertions(+), 19 deletions(-)
14 --- a/drivers/mtd/devices/bcm47xxsflash.c
15 +++ b/drivers/mtd/devices/bcm47xxsflash.c
16 @@ -337,22 +337,4 @@ static struct platform_driver bcma_sflas
18 **************************************************/
20 -static int __init bcm47xxsflash_init(void)
24 - err = platform_driver_register(&bcma_sflash_driver);
26 - pr_err("Failed to register BCMA serial flash driver: %d\n",
32 -static void __exit bcm47xxsflash_exit(void)
34 - platform_driver_unregister(&bcma_sflash_driver);
37 -module_init(bcm47xxsflash_init);
38 -module_exit(bcm47xxsflash_exit);
39 +module_platform_driver(bcma_sflash_driver);