projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ce4eac
)
PCI: Use dev_is_pci() to identify PCI devices
author
Yijing Wang
<wangyijing@huawei.com>
Thu, 5 Dec 2013 11:52:53 +0000
(19:52 +0800)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Mon, 9 Dec 2013 23:42:53 +0000
(16:42 -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>
drivers/pci/pci-acpi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/pci-acpi.c
b/drivers/pci/pci-acpi.c
index 577074efbe62f93f39ac00c6f5c4963d53bd2b0d..e0431f1af33bc81a386cd7c9bd77226818804746 100644
(file)
--- 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 = {
This page took
0.025447 seconds
and
5
git commands to generate.