cxl/mem: Split creation from mapping in probe
authorBen Widawsky <ben.widawsky@intel.com>
Wed, 7 Apr 2021 22:26:20 +0000 (15:26 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 26 May 2021 18:20:18 +0000 (11:20 -0700)
commit1b0a1a2a193400d305931a40ac68e89bcfdad9c5
tree74bb5e61691db8513cadfcda84a4b5b5fa5b3ee7
parent5d0c6f02595310a17762755bb6f015786b8900db
cxl/mem: Split creation from mapping in probe

Add a new function specifically for mapping the register blocks and
offsets within. The new function can be used more generically for other
register block identifiers.

No functional change is meant to be introduced in this patch with the
exception of a dev_err printed when the device register block isn't
found.

Signed-off-by: Ben Widawsky <ben.widawsky@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20210407222625.320177-3-ben.widawsky@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/pci.c