From: Yijing Wang Date: Thu, 5 Dec 2013 12:01:20 +0000 (+0800) Subject: powerpc/pci: Use dev_is_pci() to check whether it is pci device X-Git-Tag: v3.14-rc1~80^2~41 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=d317ac1750141db07ba30ecb1e2bacebad292fcd;p=~emulex%2Finfiniband.git powerpc/pci: Use dev_is_pci() to check whether it is pci device Use PCI standard marco dev_is_pci() instead of directly compare pci_bus_type to check whether it is pci device. Signed-off-by: Yijing Wang Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c index 4dfd61df8ab..7066e526246 100644 --- a/arch/powerpc/sysdev/fsl_pci.c +++ b/arch/powerpc/sysdev/fsl_pci.c @@ -122,7 +122,7 @@ static int fsl_pci_dma_set_mask(struct device *dev, u64 dma_mask) * address width of the SoC such that we can address any internal * SoC address from across PCI if needed */ - if ((dev->bus == &pci_bus_type) && + if ((dev_is_pci(dev)) && dma_mask >= DMA_BIT_MASK(MAX_PHYS_ADDR_BITS)) { set_dma_ops(dev, &dma_direct_ops); set_dma_offset(dev, pci64_dma_offset);