PCI: Use dev_is_pci() to identify PCI devices
authorYijing Wang <wangyijing@huawei.com>
Thu, 5 Dec 2013 11:52:53 +0000 (19:52 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 9 Dec 2013 23:42:53 +0000 (16:42 -0700)
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>
drivers/pci/pci-acpi.c

index 577074e..e0431f1 100644 (file)
@@ -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 = {