summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/ioport.c
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2013-12-11 14:00:26 +0800
committerDavid S. Miller <davem@davemloft.net>2014-01-04 17:55:19 -0800
commitbf70053c5d2000514ade1f60f47e1f426899af39 (patch)
treec92ea658b50c7a20c66c1ba20a71acfc0d3de8dd /arch/sparc/kernel/ioport.c
parent1de425c7b271220df5c1bd28e45ca97ca3f4dae8 (diff)
downloadop-kernel-dev-bf70053c5d2000514ade1f60f47e1f426899af39.zip
op-kernel-dev-bf70053c5d2000514ade1f60f47e1f426899af39.tar.gz
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/ioport.c')
-rw-r--r--arch/sparc/kernel/ioport.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c
index 2096468..e7e215d 100644
--- a/arch/sparc/kernel/ioport.c
+++ b/arch/sparc/kernel/ioport.c
@@ -666,10 +666,9 @@ EXPORT_SYMBOL(dma_ops);
*/
int dma_supported(struct device *dev, u64 mask)
{
-#ifdef CONFIG_PCI
- if (dev->bus == &pci_bus_type)
+ if (dev_is_pci(dev))
return 1;
-#endif
+
return 0;
}
EXPORT_SYMBOL(dma_supported);
OpenPOWER on IntegriCloud