From: Benedikt Spranger Date: Tue, 13 Aug 2013 09:08:38 +0000 (+0200) Subject: mfd: core: Copy DMA mask and params from parent X-Git-Tag: next-20130822~53^2^2~10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b018e1361bad361b47294fd09ae1f33f707dd933;p=karo-tx-linux.git 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 Signed-off-by: Holger Dengler Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c index 7604f4e5df40..f421586f29fb 100644 --- a/drivers/mfd/mfd-core.c +++ b/drivers/mfd/mfd-core.c @@ -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) {