Skip to content

Commit

Permalink
PCIe: portdrv: call pci_disable_device during remove
Browse files Browse the repository at this point in the history
The PCIe port driver calls pci_enable_device when registering
ports, but never calls pci_disable_device during removal.

Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
  • Loading branch information
Alex Chiang authored and Jesse Barnes committed Mar 20, 2009
1 parent 9efb5fe commit 745be2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pci/pcie/portdrv_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ void pcie_port_device_remove(struct pci_dev *dev)
struct pcie_port_data *port_data = pci_get_drvdata(dev);

device_for_each_child(&dev->dev, NULL, remove_iter);
pci_disable_device(dev);

switch (port_data->port_irq_mode) {
case PCIE_PORT_MSIX_MODE:
Expand Down

0 comments on commit 745be2e

Please sign in to comment.