summaryrefslogtreecommitdiff
path: root/drivers/cxl/mem.h
diff options
context:
space:
mode:
authorBen Widawsky <ben.widawsky@intel.com>2021-05-20 14:29:53 -0700
committerDan Williams <dan.j.williams@intel.com>2021-05-26 11:20:18 -0700
commit6630d31c912ed2dfbc035caf0f54709b50ce779e (patch)
treecf3a5652ccf2e201dbc0f49194c70111262a4d33 /drivers/cxl/mem.h
parent1d5a4159074bde1b2d5e4a6f5ed34de70a83a39f (diff)
cxl/mem: Get rid of @cxlm.base
@cxlm.base only existed to support holding the base found in the register block mapping code, and pass it along to the register setup code. Now that the register setup function has all logic around managing the registers, from DVSEC to iomapping up to populating our CXL specific information, it is easy to turn the @base values into local variables and remove them from our device driver state. Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Ben Widawsky <ben.widawsky@intel.com> Link: https://lore.kernel.org/r/20210520212953.1181695-1-ben.widawsky@intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/mem.h')
-rw-r--r--drivers/cxl/mem.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/cxl/mem.h b/drivers/cxl/mem.h
index 23fc40dde27e..13868ff7cadf 100644
--- a/drivers/cxl/mem.h
+++ b/drivers/cxl/mem.h
@@ -49,7 +49,6 @@ struct cxl_memdev {
/**
* struct cxl_mem - A CXL memory device
* @pdev: The PCI device associated with this CXL device.
- * @base: IO mappings to the device's MMIO
* @cxlmd: Logical memory device chardev / interface
* @regs: Parsed register blocks
* @payload_size: Size of space for payload
@@ -64,7 +63,6 @@ struct cxl_memdev {
*/
struct cxl_mem {
struct pci_dev *pdev;
- void __iomem *base;
struct cxl_memdev *cxlmd;
struct cxl_regs regs;