linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/9] PCI: Use dev_is_pci() to check whether it is pci device
@ 2013-12-05 11:52 Yijing Wang
  2013-12-10  0:01 ` Bjorn Helgaas
  0 siblings, 1 reply; 5+ messages in thread
From: Yijing Wang @ 2013-12-05 11:52 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: linux-pci, linux-kernel, Yijing Wang, Hanjun Guo

Use dev_is_pci() instead of directly compare
pci_bus_type to check whether it is pci device.

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
---
 drivers/pci/pci-acpi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c
index 577074e..e0431f1 100644
--- 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 = {
-- 
1.7.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-10 17:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-05 11:52 [PATCH 1/9] PCI: Use dev_is_pci() to check whether it is pci device Yijing Wang
2013-12-10  0:01 ` Bjorn Helgaas
2013-12-10  3:59   ` Benjamin Herrenschmidt
2013-12-10 17:28     ` Bjorn Helgaas
2013-12-10  7:38   ` Yijing Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).