cxl/core/regs: Rework cxl_map_pmu_regs() to use map->dev for devm
[sfrench/cifs-2.6.git] / drivers / cxl / pci.c
index 037792e941f2c8a992548c1b838023d91e8a3e9a..fa94bc61af25b58c0d0c880520188c6cc4c22d1c 100644 (file)
@@ -898,7 +898,7 @@ static int cxl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
                        break;
                }
 
-               rc = cxl_map_pmu_regs(pdev, &pmu_regs, &map);
+               rc = cxl_map_pmu_regs(&map, &pmu_regs);
                if (rc) {
                        dev_dbg(&pdev->dev, "Could not map PMU regs\n");
                        break;