mfd: mfd-core: Move pdev->mfd_cell creation back into mfd_add_device()
authorLee Jones <lee.jones@linaro.org>
Mon, 21 Oct 2019 09:55:23 +0000 (10:55 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Nov 2019 08:45:03 +0000 (08:45 +0000)
commitb944a688063c544469db713e0d613caaddd598fe
tree02c7dc0c2da5cc0aab826ba77b482937835c76bf
parent5a47c0fbd276b7f57bd38f153e8b15784b2f6f22
mfd: mfd-core: Move pdev->mfd_cell creation back into mfd_add_device()

Most of the complexity of mfd_platform_add_cell() has been removed. The
only functionality left duplicates cell memory into the child's platform
device. Since it's only a few lines, moving it to the main thread and
removing the superfluous function makes sense.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
drivers/mfd/mfd-core.c