From: Bjorn Helgaas Date: Tue, 8 May 2012 23:27:32 +0000 (-0600) Subject: b43: use pci_is_pcie() instead of obsolete pci_dev.is_pcie X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=dfcfb545d7edd0542c187c948237006675c4a656;p=openwrt%2Fstaging%2Fblogic.git b43: use pci_is_pcie() instead of obsolete pci_dev.is_pcie Use pci_is_pcie() instead of looking at obsolete is_pcie field in struct pci_dev. CC: Stefano Brivio CC: b43-dev@lists.infradead.org CC: Kenji Kaneshige Signed-off-by: Bjorn Helgaas Reviewed-by: Kenji Kaneshige Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/b43/dma.c b/drivers/net/wireless/b43/dma.c index b5f1b91002bb..777cd74921d7 100644 --- a/drivers/net/wireless/b43/dma.c +++ b/drivers/net/wireless/b43/dma.c @@ -1109,7 +1109,7 @@ static bool b43_dma_translation_in_low_word(struct b43_wldev *dev, #ifdef CONFIG_B43_SSB if (dev->dev->bus_type == B43_BUS_SSB && dev->dev->sdev->bus->bustype == SSB_BUSTYPE_PCI && - !(dev->dev->sdev->bus->host_pci->is_pcie && + !(pci_is_pcie(dev->dev->sdev->bus->host_pci) && ssb_read32(dev->dev->sdev, SSB_TMSHIGH) & SSB_TMSHIGH_DMA64)) return 1; #endif