From: Yijing Wang Date: Thu, 5 Dec 2013 11:54:34 +0000 (+0800) Subject: x86/PCI: Use dev_is_pci() to identify PCI devices X-Git-Tag: v3.14-rc1~132^2~28^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=894d33437872d974c636da55563a8474fa6713c5;p=profile%2Fivi%2Fkernel-x86-ivi.git x86/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/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 6c0b43b..d359d0f 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c @@ -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);