All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anton Vorontsov <cbouatmailru@gmail.com>
To: Devendra Naga <develkernel412222@gmail.com>
Cc: Renata Sayakhova <renata@oktetlabs.ru>,
	David Woodhouse <dwmw2@infradead.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] ds2781_battery: convert to module_platform_driver
Date: Wed, 22 Aug 2012 19:49:14 -0700	[thread overview]
Message-ID: <20120823024914.GF24471@lizard> (raw)
In-Reply-To: <1343645050-14982-1-git-send-email-develkernel412222@gmail.com>

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@gmail.com>

Nice! Both patches applied, thank you!

      reply	other threads:[~2012-08-23  2:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-30 10:44 [PATCH 1/2] ds2781_battery: convert to module_platform_driver Devendra Naga
2012-08-23  2:49 ` Anton Vorontsov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120823024914.GF24471@lizard \
    --to=cbouatmailru@gmail.com \
    --cc=develkernel412222@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=renata@oktetlabs.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.