cxl/core/regs: Rework cxl_map_pmu_regs() to use map->dev for devm
authorRobert Richter <rrichter@amd.com>
Wed, 18 Oct 2023 17:17:13 +0000 (19:17 +0200)
committerDan Williams <dan.j.williams@intel.com>
Sat, 28 Oct 2023 03:13:39 +0000 (20:13 -0700)
commite8db0701605bccbeb8d7907ecd2e50f346a725bd
tree547128ab5918598bdb649284a74bddb7ce2d1b02
parentd3970f006f084e5aab5091a865203899259e4d70
cxl/core/regs: Rework cxl_map_pmu_regs() to use map->dev for devm

struct cxl_register_map carries a @dev parameter for devm operations.
Simplify the function interface to use that instead of a separate @dev
argument.

Signed-off-by: Terry Bowman <terry.bowman@amd.com>
Signed-off-by: Robert Richter <rrichter@amd.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20231018171713.1883517-21-rrichter@amd.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/regs.c
drivers/cxl/cxl.h
drivers/cxl/pci.c