usb: Use dev_is_pci() to check whether it is pci device
authorYijing Wang <wangyijing@huawei.com>
Thu, 5 Dec 2013 11:21:32 +0000 (19:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2013 02:01:56 +0000 (18:01 -0800)
Use PCI standard marco 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>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-dbg.c

index 9269782a762735f7bd6f15575ffe93e772db166d..524cbf26d992590a01bca339bafd751a89b3ca3a 100644 (file)
@@ -818,7 +818,7 @@ static ssize_t fill_registers_buffer(struct debug_buffer *buf)
 
 #ifdef CONFIG_PCI
        /* EHCI 0.96 and later may have "extended capabilities" */
-       if (hcd->self.controller->bus == &pci_bus_type) {
+       if (dev_is_pci(hcd->self.controller)) {
                struct pci_dev  *pdev;
                u32             offset, cap, cap2;
                unsigned        count = 256/4;
This page took 0.02528 seconds and 5 git commands to generate.