[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1332135996-13860-22-git-send-email-yinghai@kernel.org>
Date: Sun, 18 Mar 2012 22:46:10 -0700
From: Yinghai Lu <yinghai@...nel.org>
To: Jesse Barnes <jbarnes@...tuousgeek.org>, x86 <x86@...nel.org>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
Yinghai Lu <yinghai@...nel.org>
Subject: [PATCH -v3 21/47] PCI: Move pci_stop_and_remove_behind_bridge() down
Later it will use pci_stop_bus_devices instead of pci_stop_behind_bridge.
Signed-off-by: Yinghai Lu <yinghai@...nel.org>
---
drivers/pci/remove.c | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c
index bf4b46b..3f540ce 100644
--- a/drivers/pci/remove.c
+++ b/drivers/pci/remove.c
@@ -128,21 +128,6 @@ static void pci_stop_behind_bridge(struct pci_dev *dev)
pci_stop_bus_device(pci_dev_b(l));
}
-/**
- * pci_stop_and_remove_behind_bridge - stop and remove all devices behind
- * a PCI bridge
- * @dev: PCI bridge device
- *
- * Remove all devices on the bus, except for the parent bridge.
- * This also removes any child buses, and any devices they may
- * contain in a depth-first manner.
- */
-void pci_stop_and_remove_behind_bridge(struct pci_dev *dev)
-{
- pci_stop_behind_bridge(dev);
- __pci_remove_behind_bridge(dev);
-}
-
static void pci_stop_bus_devices(struct pci_bus *bus)
{
struct list_head *l, *n;
@@ -162,6 +147,21 @@ static void pci_stop_bus_devices(struct pci_bus *bus)
}
/**
+ * pci_stop_and_remove_behind_bridge - stop and remove all devices behind
+ * a PCI bridge
+ * @dev: PCI bridge device
+ *
+ * Remove all devices on the bus, except for the parent bridge.
+ * This also removes any child buses, and any devices they may
+ * contain in a depth-first manner.
+ */
+void pci_stop_and_remove_behind_bridge(struct pci_dev *dev)
+{
+ pci_stop_behind_bridge(dev);
+ __pci_remove_behind_bridge(dev);
+}
+
+/**
* pci_stop_bus_device - stop a PCI device and any children
* @dev: the device to stop
*
--
1.7.7
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists