* [PATCH RFC v3 3/3] i2c: pxa: use module_platform_driver() replace init/exit
@ 2013-05-23 12:00 Libo Chen
[not found] ` <1369310411-35652-1-git-send-email-libo.chen-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Libo Chen @ 2013-05-23 12:00 UTC (permalink / raw)
To: wsa-z923LK4zBo2bacvFa/9K2g
Cc: guz.fnst-BthXqXjhjHXQFUHtdCDX3A,
sonic.zhang-OyLXuOCK7orQT0dZR+AlfA,
linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
lizefan-hv44wF8Li93QT0dZR+AlfA, libo.chen-hv44wF8Li93QT0dZR+AlfA
use module_platform_driver() macro to replace the module init/exit
Signed-off-by: Libo Chen <libo.chen-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
---
drivers/i2c/busses/i2c-pxa.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
index 7b10102..e9c3524 100644
--- a/drivers/i2c/busses/i2c-pxa.c
+++ b/drivers/i2c/busses/i2c-pxa.c
@@ -1242,15 +1242,7 @@ static struct platform_driver i2c_pxa_driver = {
.id_table = i2c_pxa_id_table,
};
-static int __init i2c_adap_pxa_init(void)
-{
- return platform_driver_register(&i2c_pxa_driver);
-}
-
-static void __exit i2c_adap_pxa_exit(void)
-{
- platform_driver_unregister(&i2c_pxa_driver);
-}
+module_platform_driver(i2c_pxa_driver);
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:pxa2xx-i2c");
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <1369310411-35652-1-git-send-email-libo.chen-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH RFC v3 3/3] i2c: pxa: use module_platform_driver() replace init/exit [not found] ` <1369310411-35652-1-git-send-email-libo.chen-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> @ 2013-05-23 13:48 ` Libo Chen [not found] ` <519E1E26.3060106-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Libo Chen @ 2013-05-23 13:48 UTC (permalink / raw) To: wsa-z923LK4zBo2bacvFa/9K2g Cc: Libo Chen, guz.fnst-BthXqXjhjHXQFUHtdCDX3A, sonic.zhang-OyLXuOCK7orQT0dZR+AlfA, linux-i2c-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA maybe I make a mistake, please drop it. 于 2013-5-23 20:00, Libo Chen 写道: > use module_platform_driver() macro to replace the module init/exit > > Signed-off-by: Libo Chen<libo.chen-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> > --- > drivers/i2c/busses/i2c-pxa.c | 10 +--------- > 1 files changed, 1 insertions(+), 9 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c > index 7b10102..e9c3524 100644 > --- a/drivers/i2c/busses/i2c-pxa.c > +++ b/drivers/i2c/busses/i2c-pxa.c > @@ -1242,15 +1242,7 @@ static struct platform_driver i2c_pxa_driver = { > .id_table = i2c_pxa_id_table, > }; > > -static int __init i2c_adap_pxa_init(void) > -{ > - return platform_driver_register(&i2c_pxa_driver); > -} > - > -static void __exit i2c_adap_pxa_exit(void) > -{ > - platform_driver_unregister(&i2c_pxa_driver); > -} > +module_platform_driver(i2c_pxa_driver); > > MODULE_LICENSE("GPL"); > MODULE_ALIAS("platform:pxa2xx-i2c"); ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <519E1E26.3060106-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH RFC v3 3/3] i2c: pxa: use module_platform_driver() replace init/exit [not found] ` <519E1E26.3060106-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2013-06-12 10:03 ` Wolfram Sang 2013-06-12 10:05 ` Wolfram Sang 0 siblings, 1 reply; 4+ messages in thread From: Wolfram Sang @ 2013-06-12 10:03 UTC (permalink / raw) To: Libo Chen Cc: Libo Chen, guz.fnst-BthXqXjhjHXQFUHtdCDX3A, sonic.zhang-OyLXuOCK7orQT0dZR+AlfA, linux-i2c-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: text/plain, Size: 118 bytes --] On Thu, May 23, 2013 at 09:48:22PM +0800, Libo Chen wrote: > maybe I make a mistake, please drop it. Which mistake? [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH RFC v3 3/3] i2c: pxa: use module_platform_driver() replace init/exit 2013-06-12 10:03 ` Wolfram Sang @ 2013-06-12 10:05 ` Wolfram Sang 0 siblings, 0 replies; 4+ messages in thread From: Wolfram Sang @ 2013-06-12 10:05 UTC (permalink / raw) To: Libo Chen Cc: Libo Chen, guz.fnst-BthXqXjhjHXQFUHtdCDX3A, sonic.zhang-OyLXuOCK7orQT0dZR+AlfA, linux-i2c-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: text/plain, Size: 225 bytes --] On Wed, Jun 12, 2013 at 12:03:13PM +0200, Wolfram Sang wrote: > On Thu, May 23, 2013 at 09:48:22PM +0800, Libo Chen wrote: > > maybe I make a mistake, please drop it. > > Which mistake? Wrong window, now I see it. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-06-12 10:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23 12:00 [PATCH RFC v3 3/3] i2c: pxa: use module_platform_driver() replace init/exit Libo Chen
[not found] ` <1369310411-35652-1-git-send-email-libo.chen-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2013-05-23 13:48 ` Libo Chen
[not found] ` <519E1E26.3060106-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-06-12 10:03 ` Wolfram Sang
2013-06-12 10:05 ` Wolfram Sang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).