From: Ben Widawsky Date: Wed, 7 Apr 2021 22:26:19 +0000 (-0700) Subject: cxl/mem: Use dev instead of pdev->dev X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5d0c6f02595310a17762755bb6f015786b8900db;p=linux.git cxl/mem: Use dev instead of pdev->dev Trivial cleanup. Signed-off-by: Ben Widawsky Acked-by: Jonathan Cameron Link: https://lore.kernel.org/r/20210407222625.320177-2-ben.widawsky@intel.com Signed-off-by: Dan Williams --- diff --git a/drivers/cxl/pci.c b/drivers/cxl/pci.c index 606c88ca902bc..e478fbfac3bed 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;