File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -905,7 +905,6 @@ static void idxd_shutdown(struct pci_dev *pdev)
905
905
static void idxd_remove (struct pci_dev * pdev )
906
906
{
907
907
struct idxd_device * idxd = pci_get_drvdata (pdev );
908
- struct idxd_irq_entry * irq_entry ;
909
908
910
909
idxd_unregister_devices (idxd );
911
910
/*
@@ -918,21 +917,12 @@ static void idxd_remove(struct pci_dev *pdev)
918
917
get_device (idxd_confdev (idxd ));
919
918
device_unregister (idxd_confdev (idxd ));
920
919
idxd_shutdown (pdev );
921
- if (device_pasid_enabled (idxd ))
922
- idxd_disable_system_pasid (idxd );
923
920
idxd_device_remove_debugfs (idxd );
924
-
925
- irq_entry = idxd_get_ie (idxd , 0 );
926
- free_irq (irq_entry -> vector , irq_entry );
927
- pci_free_irq_vectors (pdev );
921
+ idxd_cleanup (idxd );
928
922
pci_iounmap (pdev , idxd -> reg_base );
929
- if (device_user_pasid_enabled (idxd ))
930
- idxd_disable_sva (pdev );
931
- pci_disable_device (pdev );
932
- destroy_workqueue (idxd -> wq );
933
- perfmon_pmu_remove (idxd );
934
923
put_device (idxd_confdev (idxd ));
935
924
idxd_free (idxd );
925
+ pci_disable_device (pdev );
936
926
}
937
927
938
928
static struct pci_driver idxd_pci_driver = {
You can’t perform that action at this time.
0 commit comments