pci_resource_flags
if (pci_resource_flags(adev->pdev, 2) & IORESOURCE_UNSET)
if (r || (pci_resource_flags(adev->pdev, 0) & IORESOURCE_UNSET))