]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67f2def16b2e182687a03cfae4cc60614fabca4c
treeaae1fb9ed99c5078c8493fdd28e0a6217e4a29bc
parent9b1b7ad8f9934ac8856cdf9dff6f71cd44d1d4e6
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