aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2013-12-05 07:01:20 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-12-08 19:40:24 -0500
commitd317ac1750141db07ba30ecb1e2bacebad292fcd (patch)
tree43d196980935adf43f898b8343c2500c5760d2ca
parent5877231f646bbd6d1d545e7af83aaa6e6b746013 (diff)
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 <wangyijing@huawei.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r--arch/powerpc/sysdev/fsl_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c
index 4dfd61df8aba..7066e5262468 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)
122 * address width of the SoC such that we can address any internal 122 * address width of the SoC such that we can address any internal
123 * SoC address from across PCI if needed 123 * SoC address from across PCI if needed
124 */ 124 */
125 if ((dev->bus == &pci_bus_type) && 125 if ((dev_is_pci(dev)) &&
126 dma_mask >= DMA_BIT_MASK(MAX_PHYS_ADDR_BITS)) { 126 dma_mask >= DMA_BIT_MASK(MAX_PHYS_ADDR_BITS)) {
127 set_dma_ops(dev, &dma_direct_ops); 127 set_dma_ops(dev, &dma_direct_ops);
128 set_dma_offset(dev, pci64_dma_offset); 128 set_dma_offset(dev, pci64_dma_offset);