Skip to content

Commit

Permalink
ssb: Use pci_is_pcie()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hauke Mehrtens authored and John W. Linville committed Dec 22, 2010
1 parent 750de29 commit 6b740aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ssb/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,10 @@ int ssb_bus_scan(struct ssb_bus *bus,
/* Ignore PCI cores on PCI-E cards.
* Ignore PCI-E cores on PCI cards. */
if (dev->id.coreid == SSB_DEV_PCI) {
if (bus->host_pci->is_pcie)
if (pci_is_pcie(bus->host_pci))
continue;
} else {
if (!bus->host_pci->is_pcie)
if (!pci_is_pcie(bus->host_pci))
continue;
}
}
Expand Down

0 comments on commit 6b740aa

Please sign in to comment.