]> git.baikalelectronics.ru Git - kernel.git/commit
ksz884x: use module_pci_driver to simplify the code
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 7 Nov 2012 02:54:30 +0000 (02:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Nov 2012 00:01:21 +0000 (19:01 -0500)
commitfe639650c4ae2e4217d3737961c79db659d6bf38
tree704582e93f1d1953e388a4c1cc01070eee4d874d
parent863e06b0f5d9488b1e8e4c156bd407ecb973552c
ksz884x: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ksz884x.c