Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen: 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: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Jan Beulich <JBeulich@suse.com>

authored by

Yijing Wang and committed by
Konrad Rzeszutek Wilk
89c3cf52 11c7ff17

+1 -1
+1 -1
drivers/xen/dbgp.c
··· 19 19 dbgp.op = op; 20 20 21 21 #ifdef CONFIG_PCI 22 - if (ctrlr->bus == &pci_bus_type) { 22 + if (dev_is_pci(ctrlr)) { 23 23 const struct pci_dev *pdev = to_pci_dev(ctrlr); 24 24 25 25 dbgp.u.pci.seg = pci_domain_nr(pdev->bus);