diff options
author | Benedikt Spranger <b.spranger@linutronix.de> | 2013-08-13 05:08:38 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-08-14 13:55:38 -0400 |
commit | b018e1361bad361b47294fd09ae1f33f707dd933 (patch) | |
tree | 50ee1c1a6d002619a8cbb7c805431e9fdd89432c /drivers/mfd | |
parent | bb3d5934201607d8514c9a481bd68b2bd9e5510d (diff) |
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/mfd-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, | |||
96 | 96 | ||
97 | pdev->dev.parent = parent; | 97 | pdev->dev.parent = parent; |
98 | pdev->dev.type = &mfd_dev_type; | 98 | pdev->dev.type = &mfd_dev_type; |
99 | pdev->dev.dma_mask = parent->dma_mask; | ||
100 | pdev->dev.dma_parms = parent->dma_parms; | ||
99 | 101 | ||
100 | if (parent->of_node && cell->of_compatible) { | 102 | if (parent->of_node && cell->of_compatible) { |
101 | for_each_child_of_node(parent->of_node, np) { | 103 | for_each_child_of_node(parent->of_node, np) { |