Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3068539pxm; Mon, 28 Feb 2022 11:21:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJySGwG+C7V3bZwdjHcZv5sush+Nt61a+uXByziO8T1UqzlG8Mnrisv4LNz/7K1B5Oa6wmzx X-Received: by 2002:a17:902:b906:b0:14f:76a0:ad48 with SMTP id bf6-20020a170902b90600b0014f76a0ad48mr21995019plb.79.1646076097862; Mon, 28 Feb 2022 11:21:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646076097; cv=none; d=google.com; s=arc-20160816; b=Ox9rJBGT5cf02aMBOTjyAS+5EtURGPPt1g0TxDpOUh1jtZg/pfhfvXYhI8Qom0L/9X jtTa2G6iXkkF/X/a0R+o4r6QfhbAmqfiExId2EBC2pC8eKj8lAhSYLglttSuxAu1TuaE x+zBZef4zxEFIVaRbMTtfXCpRmWNcmv/VMnLhYQkULthRn6+VR9SflZXkN3oWuiRrtLa I/9sU+uplscEDe0s43VM1h9A2lFpAiOYuZM2dKA/V72QilT7VHrcuDn2hy0K/c8/k4TP 5NsIqEPXiKgXzM5VLV4Rfn6pztm5YevVZvZ596AGn+RXftk14kKjCE0XLxt7ydRhFidW t1uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NM2ZhSOgeRHdN1vkJcDiGjO8C/zSOTco+Z9Yb+OtTAU=; b=lc9Kw98QBybVH2Vz61ni+KuR06VH+y3W+IdladbRu+phQRlcX6RIHd5zGFr7R3lHJX bpcoCknINTHpNiowBwwo2iDa6RaHtQT8w5vzQlpn3xT/a5g26kkqOK7ciohq3r67sOY+ LFPy7ibWSUb0jiXMMmtKTjnf2nvO5kQsjw3pZSLtN8lFnuMnKq9Lb2mgCzOPgaAJ0w8F gNcs5h4vXFsaFORUQa8cioaARd+s4UKtne4iJDGkEV+XEH6vH5oDPY2vXTj2No8Lk6za 1JEG+NdEIidKC+b7ntRlkVSEPKhPOKsBtzPQgAJ+gUgHwxrDJe5ZBgfCb4GJ17gk7AXY /ltw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=azouk0Si; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e1-20020a656781000000b00378b905af35si2657161pgr.417.2022.02.28.11.21.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 11:21:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=azouk0Si; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 04721C332B; Mon, 28 Feb 2022 11:12:07 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240581AbiB1SjL (ORCPT + 99 others); Mon, 28 Feb 2022 13:39:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238217AbiB1Sid (ORCPT ); Mon, 28 Feb 2022 13:38:33 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A56FC4614C for ; Mon, 28 Feb 2022 10:26:14 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id u1so16805947wrg.11 for ; Mon, 28 Feb 2022 10:26:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NM2ZhSOgeRHdN1vkJcDiGjO8C/zSOTco+Z9Yb+OtTAU=; b=azouk0SiCDcaOY3VkjJqxF9J1KvwFRFzKYCQ476RROqMAaaYNQ7Llb33rcrRmUkIdI se/BkXGpPXRTF01eIwZF9604v1uwjpwIZ0XrECxqeF0RS5SXiPzOTRQ0/CkELjlOxbih noyocMKO/JixaYB8L2xbLszjTdmf4GDk8ssD98jnMmxy2WjCYiCi7EjoQRroiSLGRQ44 IyKnHHQZhtstmV6oZO2PUYqtQgxWXPhbuxvRx0rs/4jlCtJNrlnf2PqmERRVkPs6wHqB 29qTfYq+TGM8p/ei4G/dkPzUnDwE3Q2KQ+TWUMmlPpFmHvztyQ67qzA8/b+lcccji2kH 0btw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NM2ZhSOgeRHdN1vkJcDiGjO8C/zSOTco+Z9Yb+OtTAU=; b=c5WTYvup8Sawr6iDAPoyzbuehWdaTa953bUgtw6MvCaxo45kYxw5YP00ZrvH/4k9oY 2vA8jDEO/+dUAxj6SBjn9EEklkohg2vcxTeBzTDZw7KveqAzdgE69aY3bs7pAicEQ40G Zu5cpLlHMxmH6JBTUNdZyi4jhNQfADKERFgjiOY0bPaYQsjx6yN9W2utIOmy5AdvEf2P 0DfHsdczX0f+qWaFTcw7BPNTxreuivQsmsM48XpkGkv7p795V0aaVBiCZ3iHnHiY3JKl HvQGhAzmaJWUwC6hVLlR3aOuBPYOoLPxdxq2sifs26Kd3gLPFQnaA1bQAyrga2VZwMbi sdGQ== X-Gm-Message-State: AOAM532jBOPTwzkAkk85piCYLvt9cvufVGMYk04vfUJDY9+Yeimvz0WQ R2Fz+pSkW8vDrBgoq102qX0= X-Received: by 2002:a05:6000:1866:b0:1ef:8a14:ab6a with SMTP id d6-20020a056000186600b001ef8a14ab6amr8856121wri.12.1646072773210; Mon, 28 Feb 2022 10:26:13 -0800 (PST) Received: from localhost.localdomain ([94.73.33.246]) by smtp.gmail.com with ESMTPSA id q11-20020adfcd8b000000b001e320028660sm11099011wrj.92.2022.02.28.10.26.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 10:26:12 -0800 (PST) From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= To: andrzej.hajda@intel.com Cc: narmstrong@baylibre.com, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@linux.ie, daniel@ffwll.ch, maxime@cerno.tech, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Subject: [PATCH] drm/bridge: nxp-ptn3460: switch to devm_drm_of_get_bridge Date: Mon, 28 Feb 2022 19:26:00 +0100 Message-Id: <20220228182600.22463-1-jose.exposito89@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function "drm_of_find_panel_or_bridge" has been deprecated in favor of "devm_drm_of_get_bridge". Switch to the new function and reduce boilerplate. Signed-off-by: José Expósito --- drivers/gpu/drm/bridge/nxp-ptn3460.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/bridge/nxp-ptn3460.c b/drivers/gpu/drm/bridge/nxp-ptn3460.c index e941c1132598..1ab91f4e057b 100644 --- a/drivers/gpu/drm/bridge/nxp-ptn3460.c +++ b/drivers/gpu/drm/bridge/nxp-ptn3460.c @@ -263,7 +263,6 @@ static int ptn3460_probe(struct i2c_client *client, struct device *dev = &client->dev; struct ptn3460_bridge *ptn_bridge; struct drm_bridge *panel_bridge; - struct drm_panel *panel; int ret; ptn_bridge = devm_kzalloc(dev, sizeof(*ptn_bridge), GFP_KERNEL); @@ -271,11 +270,7 @@ static int ptn3460_probe(struct i2c_client *client, return -ENOMEM; } - ret = drm_of_find_panel_or_bridge(dev->of_node, 0, 0, &panel, NULL); - if (ret) - return ret; - - panel_bridge = devm_drm_panel_bridge_add(dev, panel); + panel_bridge = devm_drm_of_get_bridge(dev, dev->of_node, 0, 0); if (IS_ERR(panel_bridge)) return PTR_ERR(panel_bridge); -- 2.25.1