diff options
Diffstat (limited to 'drivers/pci/xen-pcifront.c')
-rw-r--r-- | drivers/pci/xen-pcifront.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/xen-pcifront.c b/drivers/pci/xen-pcifront.c index 401090110922..fd00ff02ab4d 100644 --- a/drivers/pci/xen-pcifront.c +++ b/drivers/pci/xen-pcifront.c | |||
@@ -544,7 +544,7 @@ static void free_root_bus_devs(struct pci_bus *bus) | |||
544 | dev = container_of(bus->devices.next, struct pci_dev, | 544 | dev = container_of(bus->devices.next, struct pci_dev, |
545 | bus_list); | 545 | bus_list); |
546 | dev_dbg(&dev->dev, "removing device\n"); | 546 | dev_dbg(&dev->dev, "removing device\n"); |
547 | pci_remove_bus_device(dev); | 547 | pci_stop_and_remove_bus_device(dev); |
548 | } | 548 | } |
549 | } | 549 | } |
550 | 550 | ||
@@ -1044,7 +1044,7 @@ static int pcifront_detach_devices(struct pcifront_device *pdev) | |||
1044 | domain, bus, slot, func); | 1044 | domain, bus, slot, func); |
1045 | continue; | 1045 | continue; |
1046 | } | 1046 | } |
1047 | pci_remove_bus_device(pci_dev); | 1047 | pci_stop_and_remove_bus_device(pci_dev); |
1048 | pci_dev_put(pci_dev); | 1048 | pci_dev_put(pci_dev); |
1049 | 1049 | ||
1050 | dev_dbg(&pdev->xdev->dev, | 1050 | dev_dbg(&pdev->xdev->dev, |