aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2010-02-22 00:12:24 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-02-22 19:21:10 -0500
commit552be54cc4232dc5acc49ccb372129d6f1b6923f (patch)
tree65739c06da3ce6a68dfe8fa27d4438d0eb8166d4 /drivers/pci/pcie
parentb67ea76172d4b1922c4b3c46c8ea8e9fec1ff38c (diff)
PCIe PME: use pci_is_pcie()
Use pci_is_pcie() instead of looking at obsolete is_pcie field in struct pci_dev. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pcie')
-rw-r--r--drivers/pci/pcie/pme/pcie_pme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/pcie/pme/pcie_pme.c b/drivers/pci/pcie/pme/pcie_pme.c
index 51a69061b120..6b516309c094 100644
--- a/drivers/pci/pcie/pme/pcie_pme.c
+++ b/drivers/pci/pcie/pme/pcie_pme.c
@@ -144,7 +144,7 @@ static bool pcie_pme_walk_bus(struct pci_bus *bus)
144 144
145 list_for_each_entry(dev, &bus->devices, bus_list) { 145 list_for_each_entry(dev, &bus->devices, bus_list) {
146 /* Skip PCIe devices in case we started from a root port. */ 146 /* Skip PCIe devices in case we started from a root port. */
147 if (!dev->is_pcie && pci_check_pme_status(dev)) { 147 if (!pci_is_pcie(dev) && pci_check_pme_status(dev)) {
148 pm_request_resume(&dev->dev); 148 pm_request_resume(&dev->dev);
149 ret = true; 149 ret = true;
150 } 150 }
@@ -177,7 +177,7 @@ static bool pcie_pme_from_pci_bridge(struct pci_bus *bus, u8 devfn)
177 if (!dev) 177 if (!dev)
178 return false; 178 return false;
179 179
180 if (dev->is_pcie && dev->pcie_type == PCI_EXP_TYPE_PCI_BRIDGE) { 180 if (pci_is_pcie(dev) && dev->pcie_type == PCI_EXP_TYPE_PCI_BRIDGE) {
181 down_read(&pci_bus_sem); 181 down_read(&pci_bus_sem);
182 if (pcie_pme_walk_bus(bus)) 182 if (pcie_pme_walk_bus(bus))
183 found = true; 183 found = true;
@@ -389,7 +389,7 @@ static void pcie_pme_mark_devices(struct pci_dev *port)
389 389
390 down_read(&pci_bus_sem); 390 down_read(&pci_bus_sem);
391 list_for_each_entry(dev, &bus->devices, bus_list) 391 list_for_each_entry(dev, &bus->devices, bus_list)
392 if (dev->is_pcie 392 if (pci_is_pcie(dev)
393 && dev->pcie_type == PCI_EXP_TYPE_RC_END) 393 && dev->pcie_type == PCI_EXP_TYPE_RC_END)
394 pcie_pme_set_native(dev, NULL); 394 pcie_pme_set_native(dev, NULL);
395 up_read(&pci_bus_sem); 395 up_read(&pci_bus_sem);