projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd2a93a
)
cxl/mem: Use dev instead of pdev->dev
author
Ben Widawsky
<ben.widawsky@intel.com>
Wed, 7 Apr 2021 22:26:19 +0000
(15:26 -0700)
committer
Dan Williams
<dan.j.williams@intel.com>
Wed, 26 May 2021 18:20:18 +0000
(11:20 -0700)
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>
drivers/cxl/pci.c
patch
|
blob
|
history
diff --git
a/drivers/cxl/pci.c
b/drivers/cxl/pci.c
index 606c88ca902bc08b78555b3d52030f7305e8b0bb..e478fbfac3bedcef6f1a8c09a25dba06ee5c6466 100644
(file)
--- 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;