diff options
author | Yijing Wang <wangyijing@huawei.com> | 2013-12-05 06:21:32 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-08 21:01:56 -0500 |
commit | e10e6f433f6f737f29dc1cea83e9a03095ac5c09 (patch) | |
tree | cf14acd18bdc5f4a78da0224bcf4c3030beb6860 | |
parent | 0d4e5bee27dc2f3aa2b0a8a2e0313bfcaf4c5389 (diff) |
usb: Use dev_is_pci() to check whether it is pci device
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>
-rw-r--r-- | drivers/usb/host/ehci-dbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c index 9269782a7627..524cbf26d992 100644 --- a/drivers/usb/host/ehci-dbg.c +++ b/drivers/usb/host/ehci-dbg.c | |||
@@ -818,7 +818,7 @@ static ssize_t fill_registers_buffer(struct debug_buffer *buf) | |||
818 | 818 | ||
819 | #ifdef CONFIG_PCI | 819 | #ifdef CONFIG_PCI |
820 | /* EHCI 0.96 and later may have "extended capabilities" */ | 820 | /* EHCI 0.96 and later may have "extended capabilities" */ |
821 | if (hcd->self.controller->bus == &pci_bus_type) { | 821 | if (dev_is_pci(hcd->self.controller)) { |
822 | struct pci_dev *pdev; | 822 | struct pci_dev *pdev; |
823 | u32 offset, cap, cap2; | 823 | u32 offset, cap, cap2; |
824 | unsigned count = 256/4; | 824 | unsigned count = 256/4; |