]> Pileus Git - ~andy/linux/blobdiff - arch/ia64/hp/common/sba_iommu.c
ia64/PCI: Use dev_is_pci() to identify PCI devices
[~andy/linux] / arch / ia64 / hp / common / sba_iommu.c
index 4c530a82fc469f976b8a38a341f077a43f9c9998..8e858b593e4f13cf79fb34fda2903531e02fd1dc 100644 (file)
@@ -255,7 +255,7 @@ static u64 prefetch_spill_page;
 #endif
 
 #ifdef CONFIG_PCI
-# define GET_IOC(dev)  (((dev)->bus == &pci_bus_type)                                          \
+# define GET_IOC(dev)  ((dev_is_pci(dev))                                              \
                         ? ((struct ioc *) PCI_CONTROLLER(to_pci_dev(dev))->iommu) : NULL)
 #else
 # define GET_IOC(dev)  NULL