Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b018e136 authored by Benedikt Spranger's avatar Benedikt Spranger Committed by Lee Jones
Browse files

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: default avatarBenedikt Spranger <b.spranger@linutronix.de>
Signed-off-by: default avatarHolger Dengler <dengler@linutronix.de>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent bb3d5934
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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) {