qla3xxx: use module_pci_driver to simplify the code
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 26 Oct 2012 05:02:30 +0000 (05:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Oct 2012 17:35:51 +0000 (13:35 -0400)
commit680d86699d17622bf2dd1bdd9f6d2520af1b142d
treeaae1fb9ed99c5078c8493fdd28e0a6217e4a29bc
parentbbd9f9ee69242f23c6063f0102bbb98f5bd23521
qla3xxx: use module_pci_driver to simplify the code

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qla3xxx.c