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] [day] [month] [year] [list]
Date:	Wed, 22 Aug 2012 19:49:14 -0700
From:	Anton Vorontsov <cbouatmailru@...il.com>
To:	Devendra Naga <develkernel412222@...il.com>
Cc:	Renata Sayakhova <renata@...etlabs.ru>,
	David Woodhouse <dwmw2@...radead.org>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] ds2781_battery: convert to module_platform_driver

On Mon, Jul 30, 2012 at 04:29:10PM +0545, Devendra Naga wrote:
> module_platform_driver can be used to replace the
> platform_driver register and unregister functions,
> with the calls to module_init and module_exit,
> 
> i.e. all the code that is doing like the below
> 
> static int __init mymod_init(void)
> {
> 	return platform_driver_register(&drv_operations);
> }
> 
> static void __exit mymod_exit(void)
> {
> 	platform_driver_unregister(&drv_operations);
> }
> 
> module_init(mymod_init);
> module_exit(mymod_exit);
> 
> can be replaced with
> module_platform_driver(drv_operations)...
> 
> Signed-off-by: Devendra Naga <develkernel412222@...il.com>

Nice! Both patches applied, thank you!
--
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