Commit 60a4992a authored by Lee Jones's avatar Lee Jones

mfd: Revert "mfd: Always assign of_node in mfd_add_device()"

This reverts commit 68044bee13770918e0b28dd44aa98c889ec7558f.

We've had confirmed reports of this patch causing unforeseen issues
with existing MFD users. It has been agreed by the original author
and myself that reversion is the best solution.
Acked-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent b5167bc4
...@@ -117,8 +117,6 @@ static int mfd_add_device(struct device *parent, int id, ...@@ -117,8 +117,6 @@ static int mfd_add_device(struct device *parent, int id,
} }
} }
} }
if (!pdev->dev.of_node)
pdev->dev.of_node = parent->of_node;
if (cell->pdata_size) { if (cell->pdata_size) {
ret = platform_device_add_data(pdev, ret = platform_device_add_data(pdev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment