summaryrefslogtreecommitdiff
path: root/drivers/cxl
diff options
context:
space:
mode:
authorBen Widawsky <ben.widawsky@intel.com>2021-04-07 15:26:19 -0700
committerDan Williams <dan.j.williams@intel.com>2021-05-26 11:20:18 -0700
commit5d0c6f02595310a17762755bb6f015786b8900db (patch)
treefc083ecec67926884d511961d0f35e2ada4a4406 /drivers/cxl
parentdd2a93a814e7ffbd4d2c3e361f4609c9bd384a96 (diff)
cxl/mem: Use dev instead of pdev->dev
Trivial cleanup. Signed-off-by: Ben Widawsky <ben.widawsky@intel.com> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20210407222625.320177-2-ben.widawsky@intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl')
-rw-r--r--drivers/cxl/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cxl/pci.c b/drivers/cxl/pci.c
index 606c88ca902b..e478fbfac3be 100644
--- a/drivers/cxl/pci.c
+++ b/drivers/cxl/pci.c
@@ -935,7 +935,7 @@ static struct cxl_mem *cxl_mem_create(struct pci_dev *pdev, u32 reg_lo,
u8 bar;
int rc;
- cxlm = devm_kzalloc(&pdev->dev, sizeof(*cxlm), GFP_KERNEL);
+ cxlm = devm_kzalloc(dev, sizeof(*cxlm), GFP_KERNEL);
if (!cxlm) {
dev_err(dev, "No memory available\n");
return NULL;