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

Commit 894d3343 authored by Yijing Wang's avatar Yijing Wang Committed by Bjorn Helgaas
Browse files

x86/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 40c368c1
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1034,9 +1034,7 @@ static int mp_config_acpi_gsi(struct device *dev, u32 gsi, int trigger,

	if (!acpi_ioapic)
		return 0;
	if (!dev)
		return 0;
	if (dev->bus != &pci_bus_type)
	if (!dev || !dev_is_pci(dev))
		return 0;

	pdev = to_pci_dev(dev);