Re: [PATCH] mmc: convert drivers/mmc/host/* to use module_platform_driver()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Nov 26, 2011 at 10:25 AM, Axel Lin <axel.lin@xxxxxxxxx> wrote:
> This patch converts the drivers in drivers/mmc/host/* to use the
> module_platform_driver() macro which makes the code smaller and a bit
> simpler.
>
> Cc: "Michał Mirosław" <mirq-linux@xxxxxxxxxxxx>
> Cc: David Brown <davidb@xxxxxxxxxxxxxx>
> Cc: Ben Dooks <ben-linux@xxxxxxxxx>
> Cc: Viresh Kumar <viresh.kumar@xxxxxx>
> Cc: Guennadi Liakhovetski <g.liakhovetski@xxxxxx>
> Cc: Ian Molton <ian@xxxxxxxxxxxxxx>
> Cc: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
> Cc: Wolfram Sang <w.sang@xxxxxxxxxxxxxx>
> Cc: Grant Likely <grant.likely@xxxxxxxxxxxx>
> Cc: Anton Vorontsov <cbouatmailru@xxxxxxxxx>
> Cc: Linus Walleij <linus.walleij@xxxxxxxxxx>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
> ---
>  drivers/mmc/host/bfin_sdh.c        |   12 +-----------
>  drivers/mmc/host/cb710-mmc.c       |   13 +------------
>  drivers/mmc/host/jz4740_mmc.c      |   12 +-----------
>  drivers/mmc/host/msm_sdcc.c        |   13 +------------
>  drivers/mmc/host/mxcmmc.c          |   13 +------------
>  drivers/mmc/host/mxs-mmc.c         |   13 +------------
>  drivers/mmc/host/pxamci.c          |   13 +------------
>  drivers/mmc/host/s3cmci.c          |   13 +------------
>  drivers/mmc/host/sdhci-cns3xxx.c   |   12 +-----------
>  drivers/mmc/host/sdhci-dove.c      |   12 +-----------
>  drivers/mmc/host/sdhci-esdhc-imx.c |   12 +-----------
>  drivers/mmc/host/sdhci-of-esdhc.c  |   12 +-----------
>  drivers/mmc/host/sdhci-of-hlwd.c   |   12 +-----------
>  drivers/mmc/host/sdhci-pxav2.c     |   12 +-----------
>  drivers/mmc/host/sdhci-pxav3.c     |   12 +-----------
>  drivers/mmc/host/sdhci-s3c.c       |   13 +------------
>  drivers/mmc/host/sdhci-spear.c     |   12 +-----------
>  drivers/mmc/host/sdhci-tegra.c     |   12 +-----------
>  drivers/mmc/host/sh_mmcif.c        |   14 +-------------
>  drivers/mmc/host/sh_mobile_sdhi.c  |   13 +------------
>  drivers/mmc/host/tmio_mmc.c        |   14 +-------------
>  21 files changed, 21 insertions(+), 243 deletions(-)
>

> diff --git a/drivers/mmc/host/sdhci-spear.c b/drivers/mmc/host/sdhci-spear.c
> index dee70b6..883548e 100644
> --- a/drivers/mmc/host/sdhci-spear.c
> +++ b/drivers/mmc/host/sdhci-spear.c
> @@ -320,17 +320,7 @@ static struct platform_driver sdhci_driver = {
>        .remove         = __devexit_p(sdhci_remove),
>  };
>
> -static int __init sdhci_init(void)
> -{
> -       return platform_driver_register(&sdhci_driver);
> -}
> -module_init(sdhci_init);
> -
> -static void __exit sdhci_exit(void)
> -{
> -       platform_driver_unregister(&sdhci_driver);
> -}
> -module_exit(sdhci_exit);
> +module_platform_driver(sdhci_driver);
>
>  MODULE_DESCRIPTION("SPEAr Secure Digital Host Controller Interface driver");
>  MODULE_AUTHOR("Viresh Kumar <viresh.kumar@xxxxxx>");

For SPEAr:

Acked-by: Viresh Kumar <viresh.linux@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux