mfd: mfd-core: Honour Device Tree's request to disable a child-device
commit6b5c350648b857047b47acf74a57087ad27d6183
authorLee Jones <lee.jones@linaro.org>
Thu, 7 Nov 2019 11:19:50 +0000 (7 11:19 +0000)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Nov 2019 11:23:57 +0000 (11 11:23 +0000)
treec91bd3a40ea20739ba8824bb854eddadb4dd5071
parent49461659bde134d91159f904eb8eca8625738f8f
mfd: mfd-core: Honour Device Tree's request to disable a child-device

Until now, MFD has assumed all child devices passed to it (via
mfd_cells) are to be registered. It does not take into account
requests from Device Tree and the like to disable child devices
on a per-platform basis.

Well now it does.

Link: https://www.spinics.net/lists/arm-kernel/msg366309.html
Link: https://lkml.org/lkml/2019/8/22/1350
Reported-by: Barry Song <Baohua.Song@csr.com>
Reported-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Tested-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/mfd-core.c