virtio-pci: use module_pci_driver to simplify the code
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 16 Oct 2012 13:26:13 +0000 (23:56 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 18 Dec 2012 04:50:30 +0000 (15:20 +1030)
commit1ce6853aa0f8e1cc3ae811a85d50cde6ad0ef735
tree8b9562a60b6de855b18ad0b413cbbae3374a73bc
parent681f206611aaec4fc8be93d609148e02c704b91d
virtio-pci: 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: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_pci.c