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>
return 1;
#ifdef CONFIG_PCI
return 1;
#ifdef CONFIG_PCI
- if (dev->bus == &pci_bus_type)
return pci64_dma_supported(to_pci_dev(dev), device_mask);
#endif
return pci64_dma_supported(to_pci_dev(dev), device_mask);
#endif
*/
int dma_supported(struct device *dev, u64 mask)
{
*/
int dma_supported(struct device *dev, u64 mask)
{
-#ifdef CONFIG_PCI
- if (dev->bus == &pci_bus_type)
return 0;
}
EXPORT_SYMBOL(dma_supported);
return 0;
}
EXPORT_SYMBOL(dma_supported);