All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] power: abx500_chargalg: use module_platform_driver() macro
@ 2013-03-11  6:30 Jingoo Han
  2013-04-01  6:10 ` Anton Vorontsov
  0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2013-03-11  6:30 UTC (permalink / raw)
  To: 'Anton Vorontsov'
  Cc: 'David Woodhouse', linux-kernel, 'Jingoo Han'

This patch uses module_platform_driver() macro which makes
the code smaller and simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/power/abx500_chargalg.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/power/abx500_chargalg.c b/drivers/power/abx500_chargalg.c
index f043c08..3d8e2f3 100644
--- a/drivers/power/abx500_chargalg.c
+++ b/drivers/power/abx500_chargalg.c
@@ -1964,18 +1964,7 @@ static struct platform_driver abx500_chargalg_driver = {
 	},
 };
 
-static int __init abx500_chargalg_init(void)
-{
-	return platform_driver_register(&abx500_chargalg_driver);
-}
-
-static void __exit abx500_chargalg_exit(void)
-{
-	platform_driver_unregister(&abx500_chargalg_driver);
-}
-
-module_init(abx500_chargalg_init);
-module_exit(abx500_chargalg_exit);
+module_platform_driver(abx500_chargalg_driver);
 
 MODULE_LICENSE("GPL v2");
 MODULE_AUTHOR("Johan Palsson, Karl Komierowski");
-- 
1.7.2.5



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] power: abx500_chargalg: use module_platform_driver() macro
  2013-03-11  6:30 [PATCH] power: abx500_chargalg: use module_platform_driver() macro Jingoo Han
@ 2013-04-01  6:10 ` Anton Vorontsov
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Vorontsov @ 2013-04-01  6:10 UTC (permalink / raw)
  To: Jingoo Han; +Cc: 'David Woodhouse', linux-kernel

On Mon, Mar 11, 2013 at 03:30:06PM +0900, Jingoo Han wrote:
> This patch uses module_platform_driver() macro which makes
> the code smaller and simpler.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---

Similar change was in a "big ab8500 sync"..

commit 1ee26af028a46cf911f844c062b3c810bac34366
Author: srinidhi kasagar <srinidhi.kasagar@stericsson.com>
Date:   Thu Oct 11 14:38:28 2012 +0530

    abx500-chargalg: Use module_platform_driver() rather

Thanks,

Anton

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-01  6:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-11  6:30 [PATCH] power: abx500_chargalg: use module_platform_driver() macro Jingoo Han
2013-04-01  6:10 ` Anton Vorontsov

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.