projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'dmaengine-4.18-rc1' of git://git.infradead.org/users/vkoul/slave-dma
[linux-2.6-block.git]
/
drivers
/
dma
/
sprd-dma.c
diff --git
a/drivers/dma/sprd-dma.c
b/drivers/dma/sprd-dma.c
index ab69f835ea024cd9feaa19400a3357a79b001130..55df0d41355b0622f4fb9ede60fd6bddbfe5a4e6 100644
(file)
--- a/
drivers/dma/sprd-dma.c
+++ b/
drivers/dma/sprd-dma.c
@@
-861,8
+861,8
@@
static int sprd_dma_probe(struct platform_device *pdev)
return ret;
}
- sdev = devm_kzalloc(&pdev->dev,
sizeof(*sdev) +
- s
izeof(*dma_chn) * chn_count
,
+ sdev = devm_kzalloc(&pdev->dev,
+ s
truct_size(sdev, channels, chn_count)
,
GFP_KERNEL);
if (!sdev)
return -ENOMEM;