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: <ADE657CA350FB648AAC2C43247A983F001F3E96DACD5@AUSP01VMBX24.collaborationhost.net>
Date:	Mon, 28 Nov 2011 11:28:36 -0600
From:	H Hartley Sweeten <hartleys@...ionengravers.com>
To:	Axel Lin <axel.lin@...il.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC:	Haojian Zhuang <haojian.zhuang@...vell.com>,
	Mike Rapoport <mike@...pulab.co.il>,
	Richard Purdie <rpurdie@...ys.net>,
	Michael Hennerich <michael.hennerich@...log.com>,
	Mark Brown <broonie@...nsource.wolfsonmicro.com>,
	Andrew Morton <akpm@...ux-foundation.org>
Subject: RE: [PATCH] backlight: convert drivers/video/backlight/* to use
 module_platform_driver()

On Friday, November 25, 2011 7:19 PM, Axel Lin wrote:
> This patch converts the drivers in drivers/video/backlight/* to use the
> module_platform_driver() macro which makes the code smaller and a bit
> simpler.
> 
> Cc: Haojian Zhuang <haojian.zhuang@...vell.com>
> Cc: H Hartley Sweeten <hsweeten@...ionengravers.com>
> Cc: Mike Rapoport <mike@...pulab.co.il>
> Cc: Richard Purdie <rpurdie@...ys.net>
> Cc: Michael Hennerich <michael.hennerich@...log.com>
> Cc: Mark Brown <broonie@...nsource.wolfsonmicro.com>
> Signed-off-by: Axel Lin <axel.lin@...il.com>
> ---

[...]

>  drivers/video/backlight/ep93xx_bl.c          |   12 +-----------

[...]

> diff --git a/drivers/video/backlight/ep93xx_bl.c b/drivers/video/backlight/ep93xx_bl.c
> index c74a6f4..32b9167 100644
> --- a/drivers/video/backlight/ep93xx_bl.c
> +++ b/drivers/video/backlight/ep93xx_bl.c
> @@ -144,17 +144,7 @@ static struct platform_driver ep93xxbl_driver = {
>  	.resume		= ep93xxbl_resume,
>  };
>  
> -static int __init ep93xxbl_init(void)
> -{
> -	return platform_driver_register(&ep93xxbl_driver);
> -}
> -module_init(ep93xxbl_init);
> -
> -static void __exit ep93xxbl_exit(void)
> -{
> -	platform_driver_unregister(&ep93xxbl_driver);
> -}
> -module_exit(ep93xxbl_exit);
> +module_platform_driver(ep93xxbl_driver);
>  
>  MODULE_DESCRIPTION("EP93xx Backlight Driver");
>  MODULE_AUTHOR("H Hartley Sweeten <hsweeten@...ionengravers.com>");

For ep93xx_bl.c:

Acked-by: H Hartley Sweeten <hsweeten@...ionengravers.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ