diff options
-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 267649244737..32e8d47d9002 100644 --- a/drivers/mfd/mfd-core.c +++ b/drivers/mfd/mfd-core.c | |||
@@ -117,6 +117,8 @@ static int mfd_add_device(struct device *parent, int id, | |||
117 | } | 117 | } |
118 | } | 118 | } |
119 | } | 119 | } |
120 | if (!pdev->dev.of_node) | ||
121 | pdev->dev.of_node = parent->of_node; | ||
120 | 122 | ||
121 | if (cell->pdata_size) { | 123 | if (cell->pdata_size) { |
122 | ret = platform_device_add_data(pdev, | 124 | ret = platform_device_add_data(pdev, |