diff options
author | Yijing Wang <wangyijing@huawei.com> | 2013-12-11 07:00:26 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-05 02:55:19 +0100 |
commit | bf70053c5d2000514ade1f60f47e1f426899af39 (patch) | |
tree | c92ea658b50c7a20c66c1ba20a71acfc0d3de8dd /arch/sparc/kernel/iommu.c | |
parent | sparc64: Fix build regression (diff) | |
download | linux-bf70053c5d2000514ade1f60f47e1f426899af39.tar.xz linux-bf70053c5d2000514ade1f60f47e1f426899af39.zip |
sparc/PCI: Use dev_is_pci() to identify PCI devices
Use dev_is_pci() instead of checking bus type directly.
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/iommu.c')
-rw-r--r-- | arch/sparc/kernel/iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/iommu.c b/arch/sparc/kernel/iommu.c index 070ed141aac7..76663b019eb5 100644 --- a/arch/sparc/kernel/iommu.c +++ b/arch/sparc/kernel/iommu.c @@ -854,7 +854,7 @@ int dma_supported(struct device *dev, u64 device_mask) return 1; #ifdef CONFIG_PCI - if (dev->bus == &pci_bus_type) + if (dev_is_pci(dev)) return pci64_dma_supported(to_pci_dev(dev), device_mask); #endif |