vfio: virqfd: rename vfio_pci_virqfd_init and vfio_pci_virqfd_exit

The functions vfio_pci_virqfd_init and vfio_pci_virqfd_exit are not really
PCI specific, since we plan to reuse the virqfd code with more VFIO drivers
in addition to VFIO_PCI.

Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com>
[Baptiste Reynal: Move rename vfio_pci_virqfd_init and vfio_pci_virqfd_exit
from "vfio: add a vfio_ prefix to virqfd_enable and virqfd_disable and export"]
Signed-off-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Reviewed-by: Eric Auger <eric.auger@linaro.org>
Tested-by: Eric Auger <eric.auger@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
Antonios Motakis
2015-03-16 14:08:52 -06:00
committed by Alex Williamson
parent bdc5e1021b
commit bb78e9eaab
3 changed files with 7 additions and 7 deletions

View File

@@ -1030,7 +1030,7 @@ put_devs:
static void __exit vfio_pci_cleanup(void)
{
pci_unregister_driver(&vfio_pci_driver);
vfio_pci_virqfd_exit();
vfio_virqfd_exit();
vfio_pci_uninit_perm_bits();
}
@@ -1044,7 +1044,7 @@ static int __init vfio_pci_init(void)
return ret;
/* Start the virqfd cleanup handler */
ret = vfio_pci_virqfd_init();
ret = vfio_virqfd_init();
if (ret)
goto out_virqfd;
@@ -1056,7 +1056,7 @@ static int __init vfio_pci_init(void)
return 0;
out_driver:
vfio_pci_virqfd_exit();
vfio_virqfd_exit();
out_virqfd:
vfio_pci_uninit_perm_bits();
return ret;