diff options
author | Yijing Wang <wangyijing@huawei.com> | 2013-12-05 06:21:42 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-08 21:01:56 -0500 |
commit | 0d4e5bee27dc2f3aa2b0a8a2e0313bfcaf4c5389 (patch) | |
tree | 5d7291625ef31a10b306a4fcd4d2263c8636c4e0 /drivers/uwb | |
parent | 1ae5799ef63176cc75ec10e545cb65f620a82747 (diff) |
uwb: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uwb')
-rw-r--r-- | drivers/uwb/umc-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/uwb/umc-bus.c b/drivers/uwb/umc-bus.c index e3ed6ff6a481..88a290f57ea0 100644 --- a/drivers/uwb/umc-bus.c +++ b/drivers/uwb/umc-bus.c | |||
@@ -85,7 +85,7 @@ int umc_match_pci_id(struct umc_driver *umc_drv, struct umc_dev *umc) | |||
85 | const struct pci_device_id *id_table = umc_drv->match_data; | 85 | const struct pci_device_id *id_table = umc_drv->match_data; |
86 | struct pci_dev *pci; | 86 | struct pci_dev *pci; |
87 | 87 | ||
88 | if (umc->dev.parent->bus != &pci_bus_type) | 88 | if (!dev_is_pci(umc->dev.parent)) |
89 | return 0; | 89 | return 0; |
90 | 90 | ||
91 | pci = to_pci_dev(umc->dev.parent); | 91 | pci = to_pci_dev(umc->dev.parent); |