提交 40c368c1 编写于 作者: Y Yijing Wang 提交者: Bjorn Helgaas

PCI: Use dev_is_pci() to identify PCI devices

Use dev_is_pci() instead of checking bus type directly.
Signed-off-by: NYijing Wang <wangyijing@huawei.com>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
上级 6ce4eac1
...@@ -358,7 +358,7 @@ static void pci_acpi_cleanup(struct device *dev) ...@@ -358,7 +358,7 @@ static void pci_acpi_cleanup(struct device *dev)
static bool pci_acpi_bus_match(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 = { static struct acpi_bus_type acpi_pci_bus = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册