Message ID | 20220121183330.1141702-1-helgaas@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 5d0c4393b207660fb9d6b08caed03ac85435fcd9 |
Headers | show |
Series | [v1] PCI: Use PCI_STD_NUM_BARS when checking standard BARs | expand |
diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c index d630cccd2e6e..784466117c92 100644 --- a/drivers/usb/core/hcd-pci.c +++ b/drivers/usb/core/hcd-pci.c @@ -248,7 +248,7 @@ int usb_hcd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id, hcd->rsrc_len, driver->description)) break; } - if (region == PCI_ROM_RESOURCE) { + if (region == PCI_STD_NUM_BARS) { dev_dbg(&dev->dev, "no i/o regions available\n"); retval = -EBUSY; goto put_hcd;