mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
mfd: core: Copy DMA mask and params from parent
The child device intends to perform DMA operations then it needs a dma mask and params set. This patches copies them from the parent device. Signed-off-by: Benedikt Spranger <b.spranger@linutronix.de> Signed-off-by: Holger Dengler <dengler@linutronix.de> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
bb3d593420
commit
b018e1361b
@ -96,6 +96,8 @@ static int mfd_add_device(struct device *parent, int id,
|
||||
|
||||
pdev->dev.parent = parent;
|
||||
pdev->dev.type = &mfd_dev_type;
|
||||
pdev->dev.dma_mask = parent->dma_mask;
|
||||
pdev->dev.dma_parms = parent->dma_parms;
|
||||
|
||||
if (parent->of_node && cell->of_compatible) {
|
||||
for_each_child_of_node(parent->of_node, np) {
|
||||
|
Loading…
Reference in New Issue
Block a user