From: Yijing Wang Date: Thu, 5 Dec 2013 11:52:53 +0000 (+0800) Subject: PCI: Use dev_is_pci() to identify PCI devices X-Git-Tag: firefly_0821_release~176^2~4608^2~28^2~7 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=40c368c1ef6379db08d2ebd36f5a45efb93cff73;p=firefly-linux-kernel-4.4.55.git PCI: Use dev_is_pci() to identify PCI devices Use dev_is_pci() instead of checking bus type directly. Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c index 577074efbe62..e0431f1af33b 100644 --- a/drivers/pci/pci-acpi.c +++ b/drivers/pci/pci-acpi.c @@ -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 = {