vdpa/pds: fixes for VF vdpa flr-aer handling
[linux-2.6-microblaze.git] / drivers / vdpa / pds / aux_drv.c
index 186e9ee..f57330c 100644 (file)
@@ -93,8 +93,8 @@ static void pds_vdpa_remove(struct auxiliary_device *aux_dev)
        struct device *dev = &aux_dev->dev;
 
        vdpa_mgmtdev_unregister(&vdpa_aux->vdpa_mdev);
+       pds_vdpa_release_irqs(vdpa_aux->pdsv);
        vp_modern_remove(&vdpa_aux->vd_mdev);
-       pci_free_irq_vectors(vdpa_aux->padev->vf_pdev);
 
        pds_vdpa_debugfs_del_vdpadev(vdpa_aux);
        kfree(vdpa_aux);