summaryrefslogtreecommitdiff
path: root/drivers/pci/pcie/pme/pcie_pme.c
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2010-02-22 08:12:24 +0300
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-02-23 03:21:10 +0300
commit552be54cc4232dc5acc49ccb372129d6f1b6923f (patch)
tree65739c06da3ce6a68dfe8fa27d4438d0eb8166d4 /drivers/pci/pcie/pme/pcie_pme.c
parentb67ea76172d4b1922c4b3c46c8ea8e9fec1ff38c (diff)
downloadlinux-552be54cc4232dc5acc49ccb372129d6f1b6923f.tar.xz
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/pme/pcie_pme.c')
-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)
list_for_each_entry(dev, &bus->devices, bus_list) {
/* Skip PCIe devices in case we started from a root port. */
- if (!dev->is_pcie && pci_check_pme_status(dev)) {
+ if (!pci_is_pcie(dev) && pci_check_pme_status(dev)) {
pm_request_resume(&dev->dev);
ret = true;
}
@@ -177,7 +177,7 @@ static bool pcie_pme_from_pci_bridge(struct pci_bus *bus, u8 devfn)
if (!dev)
return false;
- if (dev->is_pcie && dev->pcie_type == PCI_EXP_TYPE_PCI_BRIDGE) {
+ if (pci_is_pcie(dev) && dev->pcie_type == PCI_EXP_TYPE_PCI_BRIDGE) {
down_read(&pci_bus_sem);
if (pcie_pme_walk_bus(bus))
found = true;
@@ -389,7 +389,7 @@ static void pcie_pme_mark_devices(struct pci_dev *port)
down_read(&pci_bus_sem);
list_for_each_entry(dev, &bus->devices, bus_list)
- if (dev->is_pcie
+ if (pci_is_pcie(dev)
&& dev->pcie_type == PCI_EXP_TYPE_RC_END)
pcie_pme_set_native(dev, NULL);
up_read(&pci_bus_sem);