We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca76a3a commit 84e36a9Copy full SHA for 84e36a9
drivers/cxl/pci.c
@@ -453,9 +453,6 @@ static int cxl_pci_setup_regs(struct cxl_mem *cxlm)
453
return -ENXIO;
454
}
455
456
- if (pci_request_mem_regions(pdev, pci_name(pdev)))
457
- return -ENODEV;
458
-
459
/* Get the size of the Register Locator DVSEC */
460
pci_read_config_dword(pdev, regloc + PCI_DVSEC_HEADER1, ®loc_size);
461
regloc_size = FIELD_GET(PCI_DVSEC_HEADER1_LENGTH_MASK, regloc_size);
@@ -499,8 +496,6 @@ static int cxl_pci_setup_regs(struct cxl_mem *cxlm)
499
496
n_maps++;
500
497
501
498
502
- pci_release_mem_regions(pdev);
503
504
for (i = 0; i < n_maps; i++) {
505
ret = cxl_map_regs(cxlm, &maps[i]);
506
if (ret)
0 commit comments