projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40c368c
)
x86/PCI: Use dev_is_pci() to identify PCI devices
author
Yijing Wang
<wangyijing@huawei.com>
Thu, 5 Dec 2013 11:54:34 +0000
(19:54 +0800)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Mon, 9 Dec 2013 23:50:12 +0000
(16:50 -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>
arch/x86/kernel/acpi/boot.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/acpi/boot.c
b/arch/x86/kernel/acpi/boot.c
index 6c0b43bd024bb5890230ca45c61b3de082b611ef..d359d0fffa50cfea2539593f68649552df587622 100644
(file)
--- 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);