brcm47xx: deactivate mips wait instruction only for BCM4706
[openwrt.git] / target / linux / brcm47xx / patches-3.10 / 055-mtd_bcm47xxsflash_convert_to_module_platform_driver.patch
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
4  instead of init/exit
5
6 convert to module_platform_driver instead of init/exit
7
8 Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
9 Signed-off-by: Libo chen <libo.chen@huawei.com>
10 ---
11  drivers/mtd/devices/bcm47xxsflash.c |   20 +-------------------
12  1 files changed, 1 insertions(+), 19 deletions(-)
13
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
17   * Init
18   **************************************************/
19  
20 -static int __init bcm47xxsflash_init(void)
21 -{
22 -       int err;
23 -
24 -       err = platform_driver_register(&bcma_sflash_driver);
25 -       if (err)
26 -               pr_err("Failed to register BCMA serial flash driver: %d\n",
27 -                      err);
28 -
29 -       return err;
30 -}
31 -
32 -static void __exit bcm47xxsflash_exit(void)
33 -{
34 -       platform_driver_unregister(&bcma_sflash_driver);
35 -}
36 -
37 -module_init(bcm47xxsflash_init);
38 -module_exit(bcm47xxsflash_exit);
39 +module_platform_driver(bcma_sflash_driver);