Re: [PATCH v2] mfd: sprd: populate sub-devices defined in DT

From: Lee Jones
Date: Mon Jun 22 2020 - 05:52:40 EST


On Fri, 19 Jun 2020, Chunyan Zhang wrote:

> From: Chunyan Zhang <chunyan.zhang@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> ---
> Changes since v1:
> * Address comments from Lee Jones:
> - Switch to use devm_of_platform_populate() to add sub-devices.
> ---
> drivers/mfd/sprd-sc27xx-spi.c | 75 ++---------------------------------
> 1 file changed, 3 insertions(+), 72 deletions(-)

Applied, thanks.

--
Lee Jones [æçæ]
Senior Technical Lead - Developer Services
Linaro.org â Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog