b43: use pci_is_pcie() instead of obsolete pci_dev.is_pcie
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 8 May 2012 23:27:32 +0000 (17:27 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 May 2012 16:46:33 +0000 (12:46 -0400)
Use pci_is_pcie() instead of looking at obsolete is_pcie field in
struct pci_dev.

CC: Stefano Brivio <stefano.brivio@polimi.it>
CC: b43-dev@lists.infradead.org
CC: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/dma.c

index b5f1b91002bbe609cf2a1d97e127d52f7baf32e4..777cd74921d7d721aa875b51ad07b006f697ecda 100644 (file)
@@ -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