Skip to content

Commit

Permalink
alpha/PCI: Use dev_is_pci() to identify PCI devices
Browse files Browse the repository at this point in the history
Use dev_is_pci() instead of checking bus type directly.

Signed-off-by: Yijing Wang <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
  • Loading branch information
YijingWang authored and bjorn-helgaas committed Dec 11, 2013
1 parent 0021c03 commit 09296c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/alpha/kernel/pci_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ pci_map_single_1(struct pci_dev *pdev, void *cpu_addr, size_t size,
/* Helper for generic DMA-mapping functions. */
static struct pci_dev *alpha_gendev_to_pci(struct device *dev)
{
if (dev && dev->bus == &pci_bus_type)
if (dev && dev_is_pci(dev))
return to_pci_dev(dev);

/* Assume that non-PCI devices asking for DMA are either ISA or EISA,
Expand Down

0 comments on commit 09296c0

Please sign in to comment.