diff options
Diffstat (limited to 'drivers/cxl/pci.c')
| -rw-r--r-- | drivers/cxl/pci.c | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/cxl/pci.c b/drivers/cxl/pci.c index 33083a522fd1..258004f34281 100644 --- a/drivers/cxl/pci.c +++ b/drivers/cxl/pci.c @@ -554,8 +554,11 @@ static bool cxl_report_and_clear(struct cxl_dev_state *cxlds)  	/* If multiple errors, log header points to first error from ctrl reg */  	if (hweight32(status) > 1) { -		addr = cxlds->regs.ras + CXL_RAS_CAP_CONTROL_OFFSET; -		fe = BIT(FIELD_GET(CXL_RAS_CAP_CONTROL_FE_MASK, readl(addr))); +		void __iomem *rcc_addr = +			cxlds->regs.ras + CXL_RAS_CAP_CONTROL_OFFSET; + +		fe = BIT(FIELD_GET(CXL_RAS_CAP_CONTROL_FE_MASK, +				   readl(rcc_addr)));  	} else {  		fe = status;  	}  | 
