u16 id;
 
        /* This implementation only supports PCI-Express */
-       if (dev->bus != &pci_bus_type)
+       if (!dev_is_pci(dev))
                return -ENODEV;
        pdev = to_pci_dev(dev);
        id = dcaid_from_pcidev(pdev);
        int i;
 
        /* This implementation only supports PCI-Express */
-       if (dev->bus != &pci_bus_type)
+       if (!dev_is_pci(dev))
                return -ENODEV;
        pdev = to_pci_dev(dev);
 
        u16 global_req_table;
 
        /* This implementation only supports PCI-Express */
-       if (dev->bus != &pci_bus_type)
+       if (!dev_is_pci(dev))
                return -ENODEV;
        pdev = to_pci_dev(dev);
        id = dcaid_from_pcidev(pdev);
        u16 global_req_table;
 
        /* This implementation only supports PCI-Express */
-       if (dev->bus != &pci_bus_type)
+       if (!dev_is_pci(dev))
                return -ENODEV;
        pdev = to_pci_dev(dev);
 
        u16 global_req_table;
 
        /* This implementation only supports PCI-Express */
-       if (dev->bus != &pci_bus_type)
+       if (!dev_is_pci(dev))
                return -ENODEV;
        pdev = to_pci_dev(dev);
        id = dcaid_from_pcidev(pdev);
        u16 global_req_table;
 
        /* This implementation only supports PCI-Express */
-       if (dev->bus != &pci_bus_type)
+       if (!dev_is_pci(dev))
                return -ENODEV;
        pdev = to_pci_dev(dev);