Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 = {