mfd: sprd: Populate sub-devices defined in DT
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Fri, 19 Jun 2020 09:09:14 +0000 (17:09 +0800)
committerLee Jones <lee.jones@linaro.org>
Thu, 25 Jun 2020 06:44:20 +0000 (07:44 +0100)
commitc61e165822d57fd317868d14b46151d9c83662d2
tree854793dc85dcfc5680c41ca62a3f8276a8b1f5b7
parentbf9367a156fd868b312e8a575c00d57db2bc16bf
mfd: sprd: Populate sub-devices defined in DT

SC27XX-SPI added subdevices according to a pre-defined mfd_cell array,
no matter these devices were really included on board. In this patch,
switch to use devm_of_platform_populate() for adding sub-devices which
are defined in devicetree.

Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sprd-sc27xx-spi.c