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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4ED53793.80209@broadcom.com>
Date:	Tue, 29 Nov 2011 11:50:43 -0800
From:	"Jiandong Zheng" <jdzheng@...adcom.com>
To:	"Axel Lin" <axel.lin@...il.com>
cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"David Woodhouse" <dwmw2@...radead.org>,
	"Scott Branden" <sbranden@...adcom.com>,
	"Wan ZongShun" <mcuos.com@...il.com>,
	"Dmitry Eremin-Solenikov" <dbaryshkov@...il.com>,
	"Jamie Iles" <jamie@...ieiles.com>,
	"Olof Johansson" <olof@...om.net>,
	"Kyungmin Park" <kyungmin.park@...sung.com>,
	"Haojian Zhuang" <haojian.zhuang@...il.com>,
	"Artem Bityutskiy" <Artem.Bityutskiy@...ia.com>,
	"Ralf Baechle" <ralf@...ux-mips.org>,
	"Brian Norris" <computersforpeace@...il.com>,
	"Lars-Peter Clausen" <lars@...afoo.de>,
	"Manuel Lauss" <manuel.lauss@...glemail.com>,
	"Vimal Singh" <vimal.newwork@...il.com>,
	"Andres Salomon" <dilinger@...ued.net>,
	"Sukumar Ghorai" <s-ghorai@...com>,
	"linux-mtd@...ts.infradead.org" <linux-mtd@...ts.infradead.org>
Subject: Re: [PATCH] mtd: convert drivers/mtd/* to use
 module_platform_driver()

On 11/27/2011 4:45 AM, Axel Lin wrote:
> This patch converts the drivers in drivers/mtd/* to use the
> module_platform_driver() macro which makes the code smaller and a bit
> simpler.
>
> Cc: David Woodhouse<dwmw2@...radead.org>
> Cc: Jiandong Zheng<jdzheng@...adcom.com>
> Cc: Scott Branden<sbranden@...adcom.com>
> Cc: Wan ZongShun<mcuos.com@...il.com>
> Cc: Dmitry Eremin-Solenikov<dbaryshkov@...il.com>
> Cc: Jamie Iles<jamie@...ieiles.com>
> Cc: Olof Johansson<olof@...om.net>
> Cc: Kyungmin Park<kyungmin.park@...sung.com>
> Cc: Haojian Zhuang<haojian.zhuang@...il.com>
> Cc: Artem Bityutskiy<Artem.Bityutskiy@...ia.com>
> Cc: Ralf Baechle<ralf@...ux-mips.org>
> Cc: Brian Norris<computersforpeace@...il.com>
> Cc: Lars-Peter Clausen<lars@...afoo.de>
> Cc: Manuel Lauss<manuel.lauss@...glemail.com>
> Cc: Vimal Singh<vimal.newwork@...il.com>
> Cc: Andres Salomon<dilinger@...ued.net>
> Cc: Sukumar Ghorai<s-ghorai@...com>
> Signed-off-by: Axel Lin<axel.lin@...il.com>
> ---

>   drivers/mtd/nand/bcm_umi_nand.c     |   13 +------------

> diff --git a/drivers/mtd/nand/bcm_umi_nand.c b/drivers/mtd/nand/bcm_umi_nand.c
> index 46b58d6..50387fd 100644
> --- a/drivers/mtd/nand/bcm_umi_nand.c
> +++ b/drivers/mtd/nand/bcm_umi_nand.c
> @@ -546,18 +546,7 @@ static struct platform_driver nand_driver = {
>          .resume = bcm_umi_nand_resume,
>   };
>
> -static int __init nand_init(void)
> -{
> -       return platform_driver_register(&nand_driver);
> -}
> -
> -static void __exit nand_exit(void)
> -{
> -       platform_driver_unregister(&nand_driver);
> -}
> -
> -module_init(nand_init);
> -module_exit(nand_exit);
> +module_platform_driver(nand_driver);
>
>   MODULE_LICENSE("GPL");
>   MODULE_AUTHOR("Broadcom");

Acked-by: Jiandong Zheng <jdzheng@...adcom.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