Message ID | 20180502074025.12421-3-peda@axentia.se (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BE06660234 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 2 May 2018 07:43:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEEED28D97 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 2 May 2018 07:43:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A268928DA9; Wed, 2 May 2018 07:43:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0EDFB28D97 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 2 May 2018 07:43:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7mgIGf5wptRIOjf1YX7qdjfHVpTGlvxKWfQrRd9Lys0=; b=jCG9UfC1gaHK9B ny14KO6WJ/lfvFwmkyghY6i7m2Vs5CSzBN9JqO32eGtlCyOkKaXcjtIQoXJCCZnplMd/nJc4mKWTD 2XbjRZHv/X9n718xtQ7pnJ+6SP+KZsNEQCHTShvaEISCCx4N7mbjxgKO6ydsp555VBBaZJxJq5Jbx VSUFiYOLpKr81rVuChwMlRBlP15KIA8B4R5NSbO5DlzRR1FaVfiSFGbWmc8nuKSDNi1iOQLUsWk6D buD7nqiP1RTIZCR5rWivakcOBqOySil0Sl0Q1AwxuHDHKm/BCxCRileGUIpgdQMg9Z4bLzfo9TcFA b5lgHNJXBp4PFrs0ftpA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fDmQ2-0007Tq-Mk; Wed, 02 May 2018 07:43:18 +0000 Received: from mail-ve1eur01on0100.outbound.protection.outlook.com ([104.47.1.100] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fDmNp-0006Dy-Ji; Wed, 02 May 2018 07:41:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VDVz6G8tRf/Bbys+UQX+6dJWH1I/x1qjP381DVhMjyY=; b=mKOPjEubxcvPb0LprgfTguCg2UklswEsK/sOIx8//CXWVA2Z9fLl4UFmWUHiqg9zUhT2Sm+OT/ue1lVav0JuL1dUFyQA1r+F359htEAONUkohqvzo1W5Pt7n6JP7QZhPgeYbKNWZXQWebkbzkxkHsJygkCHURZSGlbjYFQzjmLg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by VI1PR0202MB2784.eurprd02.prod.outlook.com (2603:10a6:800:db::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.20; Wed, 2 May 2018 07:40:48 +0000 From: Peter Rosin <peda@axentia.se> To: linux-kernel@vger.kernel.org Subject: [PATCH 2/3] drm/rockchip: lvds: avoid duplicating drm_bridge_attach Date: Wed, 2 May 2018 09:40:24 +0200 Message-Id: <20180502074025.12421-3-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180502074025.12421-1-peda@axentia.se> References: <20180502074025.12421-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR07CA0036.eurprd07.prod.outlook.com (2603:10a6:7:66::22) To VI1PR0202MB2784.eurprd02.prod.outlook.com (2603:10a6:800:db::9) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(5600026)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:VI1PR0202MB2784; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2784; 3:KKpRqI7IdME2PBxR13CHbDtVIpW2B59RnJUy8p7pzM569UotPWHmeR6yvJAH64FVvUSTtw/5EBH02wrVSXD43FbpuMQnc4vyq3f5GSplhV3xU5CrfbOaYCjYwR6CYV2msUOnk5WUhb+RDVRJ8OAw8JD+d0XMJIyxTrT7+uSI8QdJe5+2toJXTeYmm/QM89qT2rt84QyEu+UIri9M7F7SJDlnUiFN5kc3Lgi4kixDlm+3qJhJSkI9dpTc3LGqWzHa; 25:Cl3IZZHjFTKD+3BCuY3QDp4JXp8wuc1Te682s/TgowmE+Clxv7epL9uDTgMDb7NJSZv/gNiMl25XO3bAKw3sKHG36la2o1NxSsWLZIr1soT+FUywkmNz6g4pllef11Jmk0uwYEP32S80sYq7Va+vgAlnDoyzc1WDr+JD8wY80o1jpdoSWr1Q4rF82ktZv/4OjsupEGTpFfWVrZMneJ/DxXJsFevTfOc6P3qCGO5ZsphwNDS8zCRuLoxfkLx132tJIsZBy3OZNAQ83VrXOs9j9turcfuT7xK7o+D1Jo+QTkbFga0+uykvnZdLUl2BUyeHdWXK0Xg4pX7YUxA5uz3aUw==; 31:enyJo8gCu9FHMuWnVLBoQRoGx+Naer4NzUk2sqEVsY1fwDo4Hm9XQib4XIphRIAXoN9C6UdEFu86ryHY1548flBjoTxbegIvjLFzR4DDcHgSYELE5qtqnuX5PMnn4s08zo3St3Mr6PVEISt1oGEL/31vZLLBnk1sk638pwEqVn1giodsud7bOhCt2eBVXfa8TAg/+ThxurDzjwyx4fVd4dfWNKWthUL9/LQs/2T2Otg= X-MS-TrafficTypeDiagnostic: VI1PR0202MB2784: X-Microsoft-Antispam-PRVS: <VI1PR0202MB278499E92EBA013E18034FEEBC800@VI1PR0202MB2784.eurprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(6041310)(20161123562045)(2016111802025)(20161123560045)(20161123564045)(20161123558120)(6043046)(6072148)(201708071742011); SRVR:VI1PR0202MB2784; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0202MB2784; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2784; 4:oa4kJzYfnlWRJOAn4ASgXJfOxxg+/si7o+n+PcZFF90yilDsQVFzVw55BLnwyalaEJm157PPzCYKQSM9F/6+sLRPzUZiGjyWovKkzRCTMcRFJsJeZCbtdR6mRLtl/MMnBnk558JVoeuadMlCRdz8DN0Re90R+o+dnLtw+Q2/mCqBaxRCWykM3ECim2l1la6+hjINCqS5eikTJC9UroEsS1lvO9Q/nTfRfXx4XYFySatBeDIdxPZcBirWMwU+AZ4QBiQ1auQO+b4bMZyoQ8ij4Q== X-Forefront-PRVS: 06607E485E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(396003)(376002)(346002)(366004)(39830400003)(39380400002)(199004)(189003)(105586002)(36756003)(7416002)(50226002)(575784001)(86362001)(81166006)(5660300001)(81156014)(478600001)(50466002)(48376002)(8676002)(8936002)(2906002)(106356001)(6666003)(6486002)(68736007)(7736002)(186003)(305945005)(6116002)(1076002)(16526019)(6916009)(3846002)(2351001)(5890100001)(74482002)(2361001)(97736004)(26005)(53936002)(66066001)(47776003)(54906003)(6512007)(386003)(6506007)(16586007)(316002)(4326008)(25786009)(11346002)(486006)(476003)(956004)(2616005)(446003)(52116002)(76176011)(51416003)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0202MB2784; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0202MB2784; 23:DGCkGmeOiqBvraiUh3KK2oXHbQYNm6bkZ1+pcwZ?= =?us-ascii?Q?hMFpUcMafaemttTZoND7JK6UjEPOMDKhqR87fstObNAVuqHbHzzXFwp0mkyl?= =?us-ascii?Q?KZRRMHb8gO+VzIoSNvJPeAIGtLUP2ugxTUpPQdLnI0nJ48BcklXdxOSGiqqY?= =?us-ascii?Q?c1GfnfcrwMKYAGTmODRrGRlESyvBeYRO3Rohk9HgPaDqRT6uoL0YKDoXJU4N?= =?us-ascii?Q?v2L6RZAleWEFHXue3APGIQHm4lfMjjN0B53MKQNN2N42OL/gR6jqLuuP5kxf?= =?us-ascii?Q?/d3iDBs7XQVhicrD9lBkD68TQjIjslBe5Fx4uBSBH+3ZfrN4IGEyeEw5qCsx?= =?us-ascii?Q?TDVVjsPFKhgnMn96uXEQFxGanqHznySL8PqQY7XDTQodKcMhccahoSAZSi33?= =?us-ascii?Q?RPAniDC/WmBcBT9SIKQuvcZzS6fQHiUgSWFZoWypleY42Rg4Wyikf29myF3G?= =?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N/0A3CURw0Ihe851f1k0ubRrfs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2784; 7:38Xl7B5DdYLyE1Gf8u/lfENExPz5MhfTOp7WEO0/KHMjNWu2mpsO5QorOlyA0sB8OiwaUn4/MkqQ2Dui3krB1FhNthe6k77Ssfnq7i7AhYPvxH8SywqQ3ffuiq3mW3zamiXVJxIQFpvk4/UkFhw9iVavicMEM6VBQYDhVtkkodGNYhdAbBSQah01ZP0shySkOVjMVifanhpbwN9yNZfrPM0WqsjmaNyxa2mWT/yK+StCny0ZCnzvkYYQYzWhTl5y X-MS-Office365-Filtering-Correlation-Id: 1644fa97-28df-4f97-2999-08d5b000065b X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2018 07:40:48.4044 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1644fa97-28df-4f97-2999-08d5b000065b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2784 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180502_004101_704705_AE141C70 X-CRM114-Status: GOOD ( 10.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-samsung-soc@vger.kernel.org, Joonyoung Shim <jy0922.shim@samsung.com>, David Airlie <airlied@linux.ie>, Seung-Woo Kim <sw0312.kim@samsung.com>, Sandy Huang <hjc@rock-chips.com>, Krzysztof Kozlowski <krzk@kernel.org>, Inki Dae <inki.dae@samsung.com>, linux-rockchip@lists.infradead.org, Kyungmin Park <kyungmin.park@samsung.com>, Kukjin Kim <kgene@kernel.org>, dri-devel@lists.freedesktop.org, Benjamin Gaignard <benjamin.gaignard@linaro.org>, Vincent Abriou <vincent.abriou@st.com>, Peter Rosin <peda@axentia.se>, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Heiko=20St=C3=BCbner?= <heiko@sntech.de> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Am Mittwoch, 2. Mai 2018, 09:40:24 CEST schrieb Peter Rosin: > drm_bridge_attach takes care of these assignments, so there is no need > to open-code them a second time. > > Signed-off-by: Peter Rosin <peda@axentia.se> applied to drm-misc-next Thanks Heiko
diff --git a/drivers/gpu/drm/rockchip/rockchip_lvds.c b/drivers/gpu/drm/rockchip/rockchip_lvds.c index e67f4ea28c0e..4bd94b167d2c 100644 --- a/drivers/gpu/drm/rockchip/rockchip_lvds.c +++ b/drivers/gpu/drm/rockchip/rockchip_lvds.c @@ -446,14 +446,12 @@ static int rockchip_lvds_bind(struct device *dev, struct device *master, goto err_free_connector; } } else { - lvds->bridge->encoder = encoder; ret = drm_bridge_attach(encoder, lvds->bridge, NULL); if (ret) { DRM_DEV_ERROR(drm_dev->dev, "failed to attach bridge: %d\n", ret); goto err_free_encoder; } - encoder->bridge = lvds->bridge; } pm_runtime_enable(dev);
drm_bridge_attach takes care of these assignments, so there is no need to open-code them a second time. Signed-off-by: Peter Rosin <peda@axentia.se> --- drivers/gpu/drm/rockchip/rockchip_lvds.c | 2 -- 1 file changed, 2 deletions(-)