summaryrefslogtreecommitdiffstats
path: root/include/linux/uwb
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2013-12-05 19:21:42 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-08 18:01:56 -0800
commit0d4e5bee27dc2f3aa2b0a8a2e0313bfcaf4c5389 (patch)
tree5d7291625ef31a10b306a4fcd4d2263c8636c4e0 /include/linux/uwb
parent1ae5799ef63176cc75ec10e545cb65f620a82747 (diff)
downloadop-kernel-dev-0d4e5bee27dc2f3aa2b0a8a2e0313bfcaf4c5389.zip
op-kernel-dev-0d4e5bee27dc2f3aa2b0a8a2e0313bfcaf4c5389.tar.gz
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 'include/linux/uwb')
-rw-r--r--include/linux/uwb/umc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/uwb/umc.h b/include/linux/uwb/umc.h
index 891d1d5..ba82f03 100644
--- a/include/linux/uwb/umc.h
+++ b/include/linux/uwb/umc.h
@@ -143,7 +143,7 @@ int umc_match_pci_id(struct umc_driver *umc_drv, struct umc_dev *umc);
static inline struct pci_dev *umc_parent_pci_dev(struct umc_dev *umc_dev)
{
struct pci_dev *pci_dev = NULL;
- if (umc_dev->dev.parent->bus == &pci_bus_type)
+ if (dev_is_pci(umc_dev->dev.parent))
pci_dev = to_pci_dev(umc_dev->dev.parent);
return pci_dev;
}
OpenPOWER on IntegriCloud