Message ID | 20220301141247.126911-5-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBB7WT7CIAMGQEHLX23NA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 0BC6B3F0D5 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 1 Mar 2022 15:13:20 +0100 (CET) Received: by mail-pg1-f199.google.com with SMTP id d192-20020a6336c9000000b00372eb4c4bf4sf8640647pga.8 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 01 Mar 2022 06:13:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646143999; cv=pass; d=google.com; s=arc-20160816; b=JshlZmj3cGlcP+Mlv69i3hIo+IB0SFOvi7vjubzXzEL1SYnyhBsHPXT/qQXOpXIrdS +3tYLeecrnUttC1jD1395Lw/l7KpajuEAP/46QHfQk9XuzjOTs2+Oh2AnE/SyZetXSCB XSzLb3BdN3oor5Mz2hHv/0DbUuysIkogoRqakzhIGutXSPNCEdEFVDc1XCp5bY4Db4IX 6dT6dgOFCYqBimysvo2N3u6hhG4fccjTq2gsrfPPuYIaKNQxJCnpUG9yugL+6ebtLE5M gMm41pgeYdZMa7DYeOz0b5ZSHSgVKpaTbgb3C80osrFyTYN6kI7zb/tt1jf2hy7i3Z92 YcWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=n5fep2zyoBUiwWeAb2XGyKQfCSNmCkjoWsa+7Du3uz0=; b=bd1o9Zt+rNwqf2pVN8wGTr8Lo/nHN+WYSodpKO/y3xkoy+4aUYAtg1kx/zbUvT1/Ff nFOaSEqvBWd7Vg7J6iK9GNi14tI6S/YWO5WcVpI2VMspC/aKlp9JK6m7T3ll4MSy9XX3 nwLVLWo21ACy+vrE5BUHsbRks/RHa5vMIVY8XA946ZCJplNOvjyy0f//hQDtVjrHF/QT lVDCl/kkisjfBN9l2SVFlIQGuH7VMQs7TTD+58U83DVTI1ssGONwlV9G1FPr/7KOBZ+O dgaxHsMXkCud4u9cuyTOk7Fb96t6HjUoJek3OsHAQVvouROdNc0DQ2m1Og6uzpFu06e6 bmzA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kNzeZ7i0; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=n5fep2zyoBUiwWeAb2XGyKQfCSNmCkjoWsa+7Du3uz0=; b=gGR+gKivA3tem21WPhKiKK5UYJReocvWuCJYUmP+dJKjW0hekseE3jyP51N/dHSsSt 2oyoZBjaNOq2OOSSotyPaazdJDyQiVL2YelglSp6JBUeTzQlAA4sModzb63ofb5sYe9a usYB70SycYU+ZBAWiyMli2QL//sgBD+5A0V+0= 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:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=n5fep2zyoBUiwWeAb2XGyKQfCSNmCkjoWsa+7Du3uz0=; b=E+uMUuwGojC4H2pz1LYSN/eaX6yg+AiHamIhsw7pPyRIb8Q9CjH2X/0A9FTX/MWwcU qVpN/86UKfl2izu3uAKg6Hg9lpD/1a/ix5A6yEGpgydxnoSsERC0pabCwPHQcWzwg6c8 8pqC1/JQZnSiUHuf8S+jK9PaVsx/MFK7w8NPZY3cOSfqNwX4bfSaWrZyr7KGxeyh1KXT kUZ13RPO9g7AiF+viXUaixV861lrWXOwImh0tlvEol/+Jjebnh9QJjGIaH/F+YsMitHK /+ErC1zuSUj2zut7zTv8VJHzB4ZRtZm36dbf2mi+cOSmP9l3Z95K8VZcYBk0jBylo6wh z3fQ== X-Gm-Message-State: AOAM532CFtJs3o5b5kI3/YKIw01vKhDZ6lDeGE2QN2DrOgvJQnzoUAyH YEDzoWV/mAd7hAnkxpfWnX/bry34 X-Google-Smtp-Source: ABdhPJzYit5Fgh16txMrqlwz5AUnGFzHdRJr6zQ02L7D6lRQI3xDvpXd5jcxL8uBksdbhs9G/JhcVw== X-Received: by 2002:a17:90b:3587:b0:1bc:87f6:73ae with SMTP id mm7-20020a17090b358700b001bc87f673aemr21913470pjb.14.1646143998851; Tue, 01 Mar 2022 06:13:18 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:d48f:b0:150:b5b:5387 with SMTP id c15-20020a170902d48f00b001500b5b5387ls12470362plg.4.gmail; Tue, 01 Mar 2022 06:13:18 -0800 (PST) X-Received: by 2002:a17:902:c405:b0:14f:dff5:92a0 with SMTP id k5-20020a170902c40500b0014fdff592a0mr26240835plk.61.1646143998140; Tue, 01 Mar 2022 06:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646143998; cv=none; d=google.com; s=arc-20160816; b=tqaVMCiIwaPpv8cU6eDrQm+HAQUJzkzNAkRYNuqKnUywGlvrYysd4KWt0PKXSq+lTE IvLFTxXFZQbiQqBckri4hyhOckXte8EtGk2I0x1n4yM1DlhL6jl7h6CAQ2VVNgW72CrC BYMEMtgOCTOKN5+bc72g80z2LM8TNuCp9ZrVTDIqq7I1vG0S0UZ4RZ9Vkiz3tRLXlKzq NfpuJ4bbvAVjTXUe0fayjUvYl8oIgHKXQrjkkzOXnRURkOONs4jqPK4esItkHOLs1e6S /mHSKwn9kjQ0o5MblLv89SsAJQiOqC2MWeJUErbxl1FhE5Hkg2kLdZnffUe9ko6IfwEV dGwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=7PQVaxp9YYvuXFR5oouUgHJS1okQ3AFQmwBRkeezcmk=; b=jEWOhJ8dhCSGVUn0quVB2EIFkxLF95bipG4Gt++sUCz03l1QnWhihFAPIY9exKPlgq dYh5kD4HETSKJsLu5+gsD0sk/xf6PU5dMY4zWNtBwkDXAW0yt2rriTmnJuqgeJogpif9 diNH0yjUXbWlK/D9lixh7lIgmnwTwc0Hr3N6gdzui6Omnc1Y6qrPU5aTdoBAL5sf1UqQ x31rtbCDABIhfntYMQHowD3UHcRPfwrmuTwoO9KZ/9GZE5lXOcsLqHFEawZdHHYW8fzM /jvmMpa2JA7G/IYUbdjWHTM+JVROVD4F6/9auFIrqRl3ntORvrUd3hSiMHQZGf3hjHPr jjZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kNzeZ7i0; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id be11-20020a170902aa0b00b0014fe928996esor6838583plb.30.2022.03.01.06.13.18 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 01 Mar 2022 06:13:18 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:903:244d:b0:150:18f3:8e98 with SMTP id l13-20020a170903244d00b0015018f38e98mr25384278pls.28.1646143997833; Tue, 01 Mar 2022 06:13:17 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:dbfb:dee9:8dc1:861a]) by smtp.gmail.com with ESMTPSA id d11-20020a056a0010cb00b004e1b76b09c0sm17317571pfu.74.2022.03.01.06.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 06:13:17 -0800 (PST) From: Jagan Teki <jagan@amarulasolutions.com> To: Andrzej Hajda <andrzej.hajda@intel.com>, Neil Armstrong <narmstrong@baylibre.com>, Robert Foss <robert.foss@linaro.org> Cc: dri-devel@lists.freedesktop.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v2 5/8] drm: bridge: nxp-ptn3460: Switch to devm_drm_of_get_bridge Date: Tue, 1 Mar 2022 19:42:44 +0530 Message-Id: <20220301141247.126911-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220301141247.126911-1-jagan@amarulasolutions.com> References: <20220301141247.126911-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kNzeZ7i0; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
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);
devm_drm_of_get_bridge is capable of looking up the downstream bridge and panel and trying to add a panel bridge if the panel is found. Replace explicit finding calls with devm_drm_of_get_bridge. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- Changes for v2: - split the patch drivers/gpu/drm/bridge/nxp-ptn3460.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)