lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 27 Nov 2011 19:12:51 +0530
From:	viresh kumar <viresh.linux@...il.com>
To:	Axel Lin <axel.lin@...il.com>
Cc:	linux-kernel@...r.kernel.org, Micha <mirq-linux@...e.qmqm.pl>,
	David Brown <davidb@...eaurora.org>,
	Ben Dooks <ben-linux@...ff.org>,
	Viresh Kumar <viresh.kumar@...com>,
	Guennadi Liakhovetski <g.liakhovetski@....de>,
	Ian Molton <ian@...menth.co.uk>,
	Sascha Hauer <s.hauer@...gutronix.de>,
	Wolfram Sang <w.sang@...gutronix.de>,
	Grant Likely <grant.likely@...retlab.ca>,
	Anton Vorontsov <cbouatmailru@...il.com>,
	Linus Walleij <linus.walleij@...aro.org>,
	Chris Ball <cjb@...top.org>, linux-mmc@...r.kernel.org,
	Shiraz HASHIM <shiraz.hashim@...com>,
	Armando VISCONTI <armando.visconti@...com>
Subject: Re: [PATCH] mmc: convert drivers/mmc/host/* to use module_platform_driver()

On Sat, Nov 26, 2011 at 10:25 AM, Axel Lin <axel.lin@...il.com> 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@...e.qmqm.pl>
> Cc: David Brown <davidb@...eaurora.org>
> Cc: Ben Dooks <ben-linux@...ff.org>
> Cc: Viresh Kumar <viresh.kumar@...com>
> Cc: Guennadi Liakhovetski <g.liakhovetski@....de>
> Cc: Ian Molton <ian@...menth.co.uk>
> Cc: Sascha Hauer <s.hauer@...gutronix.de>
> Cc: Wolfram Sang <w.sang@...gutronix.de>
> Cc: Grant Likely <grant.likely@...retlab.ca>
> Cc: Anton Vorontsov <cbouatmailru@...il.com>
> Cc: Linus Walleij <linus.walleij@...aro.org>
> Signed-off-by: Axel Lin <axel.lin@...il.com>
> ---
>  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@...com>");

For SPEAr:

Acked-by: Viresh Kumar <viresh.linux@...il.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ