diff options
| -rw-r--r-- | drivers/pci/controller/vmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c index fd2dbd7eed7b..46ed80f66386 100644 --- a/drivers/pci/controller/vmd.c +++ b/drivers/pci/controller/vmd.c | |||
| @@ -813,12 +813,12 @@ static void vmd_remove(struct pci_dev *dev) | |||
| 813 | { | 813 | { |
| 814 | struct vmd_dev *vmd = pci_get_drvdata(dev); | 814 | struct vmd_dev *vmd = pci_get_drvdata(dev); |
| 815 | 815 | ||
| 816 | vmd_detach_resources(vmd); | ||
| 817 | sysfs_remove_link(&vmd->dev->dev.kobj, "domain"); | 816 | sysfs_remove_link(&vmd->dev->dev.kobj, "domain"); |
| 818 | pci_stop_root_bus(vmd->bus); | 817 | pci_stop_root_bus(vmd->bus); |
| 819 | pci_remove_root_bus(vmd->bus); | 818 | pci_remove_root_bus(vmd->bus); |
| 820 | vmd_cleanup_srcu(vmd); | 819 | vmd_cleanup_srcu(vmd); |
| 821 | vmd_teardown_dma_ops(vmd); | 820 | vmd_teardown_dma_ops(vmd); |
| 821 | vmd_detach_resources(vmd); | ||
| 822 | irq_domain_remove(vmd->irq_domain); | 822 | irq_domain_remove(vmd->irq_domain); |
| 823 | } | 823 | } |
| 824 | 824 | ||
