All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] qla3xxx: use module_pci_driver to simplify the code
@ 2012-10-26 15:02 Wei Yongjun
  2012-10-26 16:32 ` Jitendra Kalsaria
  2012-10-31 17:36 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Wei Yongjun @ 2012-10-26 15:02 UTC (permalink / raw)
  To: jitendra.kalsaria, ron.mercer; +Cc: yongjun_wei, linux-driver, netdev

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Use the module_pci_driver() macro to make the code simpler
by eliminating module_init and module_exit calls.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 drivers/net/ethernet/qlogic/qla3xxx.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/net/ethernet/qlogic/qla3xxx.c b/drivers/net/ethernet/qlogic/qla3xxx.c
index 6407d0d..232a115 100644
--- a/drivers/net/ethernet/qlogic/qla3xxx.c
+++ b/drivers/net/ethernet/qlogic/qla3xxx.c
@@ -3958,15 +3958,4 @@ static struct pci_driver ql3xxx_driver = {
 	.remove = __devexit_p(ql3xxx_remove),
 };
 
-static int __init ql3xxx_init_module(void)
-{
-	return pci_register_driver(&ql3xxx_driver);
-}
-
-static void __exit ql3xxx_exit(void)
-{
-	pci_unregister_driver(&ql3xxx_driver);
-}
-
-module_init(ql3xxx_init_module);
-module_exit(ql3xxx_exit);
+module_pci_driver(ql3xxx_driver);

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

* RE: [PATCH -next] qla3xxx: use module_pci_driver to simplify the code
  2012-10-26 15:02 [PATCH -next] qla3xxx: use module_pci_driver to simplify the code Wei Yongjun
@ 2012-10-26 16:32 ` Jitendra Kalsaria
  2012-10-31 17:36 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Jitendra Kalsaria @ 2012-10-26 16:32 UTC (permalink / raw)
  To: Wei Yongjun, Ron Mercer; +Cc: yongjun_wei, Dept-Eng Linux Driver, netdev



>From: Wei Yongjun [mailto:weiyj.lk@gmail.com] 
>Sent: Friday, October 26, 2012 8:03 AM
>To: Jitendra Kalsaria; Ron Mercer
>Cc: yongjun_wei@trendmicro.com.cn; Dept-Eng Linux Driver; netdev
>Subject: [PATCH -next] qla3xxx: use module_pci_driver to simplify the code
>
>From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
>Use the module_pci_driver() macro to make the code simpler
>by eliminating module_init and module_exit calls.
>
>dpatch engine is used to auto generate this patch.
>(https://github.com/weiyj/dpatch)
>
>Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Acked-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>

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

* Re: [PATCH -next] qla3xxx: use module_pci_driver to simplify the code
  2012-10-26 15:02 [PATCH -next] qla3xxx: use module_pci_driver to simplify the code Wei Yongjun
  2012-10-26 16:32 ` Jitendra Kalsaria
@ 2012-10-31 17:36 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2012-10-31 17:36 UTC (permalink / raw)
  To: weiyj.lk; +Cc: jitendra.kalsaria, ron.mercer, yongjun_wei, linux-driver, netdev

From: Wei Yongjun <weiyj.lk@gmail.com>
Date: Fri, 26 Oct 2012 23:02:30 +0800

> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> 
> Use the module_pci_driver() macro to make the code simpler
> by eliminating module_init and module_exit calls.
> 
> dpatch engine is used to auto generate this patch.
> (https://github.com/weiyj/dpatch)
> 
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Applied.

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

end of thread, other threads:[~2012-10-31 17:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-26 15:02 [PATCH -next] qla3xxx: use module_pci_driver to simplify the code Wei Yongjun
2012-10-26 16:32 ` Jitendra Kalsaria
2012-10-31 17:36 ` David Miller

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.