2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-17 23:25:46 +08:00

ssb: Use pci_is_pcie()

Use function pci_is_pcie() instead of accessing struct member directly.

CC: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Hauke Mehrtens 2010-12-21 02:01:52 +01:00 committed by John W. Linville
parent 750de29109
commit 6b740aaa00

View File

@ -405,10 +405,10 @@ int ssb_bus_scan(struct ssb_bus *bus,
/* Ignore PCI cores on PCI-E cards. /* Ignore PCI cores on PCI-E cards.
* Ignore PCI-E cores on PCI cards. */ * Ignore PCI-E cores on PCI cards. */
if (dev->id.coreid == SSB_DEV_PCI) { if (dev->id.coreid == SSB_DEV_PCI) {
if (bus->host_pci->is_pcie) if (pci_is_pcie(bus->host_pci))
continue; continue;
} else { } else {
if (!bus->host_pci->is_pcie) if (!pci_is_pcie(bus->host_pci))
continue; continue;
} }
} }