virtio_pci: move probe/remove code to common
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 13 Jan 2015 09:23:32 +0000 (11:23 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Jan 2015 05:58:51 +0000 (16:28 +1030)
commitff31d2e28549c84d53252b3c36b6f0ba18b78697
treec9fa6b04df782a19b50d923c8f1cdd4fbe29888c
parent2bd56afd44123cea3741c7a46ddd96a46c92b8d9
virtio_pci: move probe/remove code to common

Most of initialization is device-independent.
Let's move it to common.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_pci_common.c
drivers/virtio/virtio_pci_common.h
drivers/virtio/virtio_pci_legacy.c