From patchwork Thu Feb 23 15:10:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 656096 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBEB2C64ED8 for ; Thu, 23 Feb 2023 15:11:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233218AbjBWPLI (ORCPT ); Thu, 23 Feb 2023 10:11:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233393AbjBWPLG (ORCPT ); Thu, 23 Feb 2023 10:11:06 -0500 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 945FE48E33 for ; Thu, 23 Feb 2023 07:11:05 -0800 (PST) Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 2D1A98574F; Thu, 23 Feb 2023 16:11:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1677165063; bh=16xbgJCTo5sTBDrtuR0KQuDS4zF7hRZbmCwulnyc40w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uY74j56PRyRx8q2zDB/bx1WGePGPgJ2peTuxb3yOALzqb1SyDm7iMbttlrWyZUQl8 wtEKurJaEHwku572bRyfz+FNXutWuiUBfMjaoEjcpZA/zCLXGj3BgVV4x1BkobqHgu oH3vdlfiAU7fp3VXKT9MORlAcGB+8c4lfRoGsJyaBFsZwfvNcF6b98OYTiGRDrawJL y019nETx3ZkwNhPttOhh5bjuS7W5H5gCezn0spKvWzS9fHyMsG+1EAUQSmfvpmYp2p JBRIMPh4EfX0n5FzqWtXuYw3n97Ixa41O+7aQQQcZhnnOXBAYDKml8g0rHs9fTc7PP MlDbLct2zfG+g== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexander Stein , Fabio Estevam , Krzysztof Kozlowski , Laurent Pinchart , Lucas Stach , NXP Linux Team , Paul Elder , Peng Fan , Pengutronix Kernel Team , Richard Cochran , Richard Zhu , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org Subject: [PATCH v4 3/4] soc: imx: imx8m-blk-ctrl: Scan subnodes and bind drivers to them Date: Thu, 23 Feb 2023 16:10:42 +0100 Message-Id: <20230223151043.41548-3-marex@denx.de> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230223151043.41548-1-marex@denx.de> References: <20230223151043.41548-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This particular block can have DT subnodes describing the LVDS LDB bridge. Instead of misusing simple-bus to scan for those nodes, do the scan within the driver. Fixes: 94e6197dadc9 ("arm64: dts: imx8mp: Add LCDIF2 & LDB nodes") Signed-off-by: Marek Vasut --- Cc: Alexander Stein Cc: Fabio Estevam Cc: Krzysztof Kozlowski Cc: Laurent Pinchart Cc: Lucas Stach Cc: NXP Linux Team Cc: Paul Elder Cc: Peng Fan Cc: Pengutronix Kernel Team Cc: Richard Cochran Cc: Richard Zhu Cc: Rob Herring Cc: Sascha Hauer Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- V2: - Turn this into 3/4 - Warn and continue in case of error V3: Add RB from Liu V4: - Use devm_of_platform_populate() - Remove RB from Liu --- drivers/soc/imx/imx8m-blk-ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c index 399cb85105a18..77e7dc4eb8cff 100644 --- a/drivers/soc/imx/imx8m-blk-ctrl.c +++ b/drivers/soc/imx/imx8m-blk-ctrl.c @@ -310,7 +310,7 @@ static int imx8m_blk_ctrl_probe(struct platform_device *pdev) dev_set_drvdata(dev, bc); - return 0; + return devm_of_platform_populate(dev); cleanup_provider: of_genpd_del_provider(dev->of_node);