ia64/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>
This commit is contained in:

committed by
Bjorn Helgaas

parent
894d334378
commit
c7797d67ce
@@ -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
|
||||
|
Reference in New Issue
Block a user