vfio/pci: rename vfio_put_device to vfio_pci_put_device

vfio_put_device() is a VFIO PCI specific function, rename it with
'vfio_pci' prefix to avoid confusing.

No functional change.

Suggested-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
Zhenzhong Duan 2023-09-22 10:52:23 +08:00 committed by Cédric Le Goater
parent 931150e56b
commit c06327c9db
1 changed files with 2 additions and 2 deletions

View File

@ -2826,7 +2826,7 @@ static void vfio_populate_device(VFIOPCIDevice *vdev, Error **errp)
}
}
static void vfio_put_device(VFIOPCIDevice *vdev)
static void vfio_pci_put_device(VFIOPCIDevice *vdev)
{
g_free(vdev->vbasedev.name);
g_free(vdev->msix);
@ -3317,7 +3317,7 @@ static void vfio_instance_finalize(Object *obj)
*
* g_free(vdev->igd_opregion);
*/
vfio_put_device(vdev);
vfio_pci_put_device(vdev);
vfio_put_group(group);
}