Message ID | 20230301165938.6403-1-Jonathan.Cameron@huawei.com |
---|---|
State | New, archived |
Headers | show |
Series | [v2] cxl/mbox: Drop extra (struct resource) | expand |
diff --git a/drivers/cxl/core/mbox.c b/drivers/cxl/core/mbox.c index f2addb457172..dce16088ceee 100644 --- a/drivers/cxl/core/mbox.c +++ b/drivers/cxl/core/mbox.c @@ -1052,8 +1052,7 @@ int cxl_mem_create_range_info(struct cxl_dev_state *cxlds) struct device *dev = cxlds->dev; int rc; - cxlds->dpa_res = - (struct resource)DEFINE_RES_MEM(0, cxlds->total_bytes); + cxlds->dpa_res = DEFINE_RES_MEM(0, cxlds->total_bytes); if (cxlds->partition_align_bytes == 0) { rc = add_dpa_res(dev, &cxlds->dpa_res, &cxlds->ram_res, 0,