Commit 40c368c1 authored by Yijing Wang's avatar Yijing Wang Committed by Bjorn Helgaas

PCI: Use dev_is_pci() to identify PCI devices

Use dev_is_pci() instead of checking bus type directly.
Signed-off-by: default avatarYijing Wang <wangyijing@huawei.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 6ce4eac1
......@@ -358,7 +358,7 @@ static void pci_acpi_cleanup(struct device *dev)
static bool pci_acpi_bus_match(struct device *dev)
{
return dev->bus == &pci_bus_type;
return dev_is_pci(dev);
}
static struct acpi_bus_type acpi_pci_bus = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment