From patchwork Fri May 4 13:52:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10382401 Return-Path: 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 1CAEE60467 for ; Sat, 5 May 2018 20:15:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D4A628FE1 for ; Sat, 5 May 2018 20:15:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 017092900A; Sat, 5 May 2018 20:15:27 +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=-5.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B601F28FE1 for ; Sat, 5 May 2018 20:15:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F243F6E331; Sat, 5 May 2018 20:08:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02on070d.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe06::70d]) by gabe.freedesktop.org (Postfix) with ESMTPS id A70416E8C7; Fri, 4 May 2018 13:53:47 +0000 (UTC) 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=VRI09p6lxv/HA2/ZrfkEfAH92DTjiBH+DyqaBsVoNBQ=; b=K1nXpeG3KrEJoEifn+0ngae5xU3hUajjF0Nqj0JqU5B3au1S157IUrPgU6xNj1Xu4IE6EE2qY4zVRBvVNwo+BDCG+Z8xuB95Pf0XBfKd1pANYWJBWKomTRbMeGDA4NRnpFZ7MBnLbhJl+uoK9wA4OpBs3mV+50IZdo78GElxHb8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by AM4PR0202MB2769.eurprd02.prod.outlook.com (2603:10a6:200:8c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.735.16; Fri, 4 May 2018 13:53:41 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v2 24/26] drm/bridge: remove the .of_node member Date: Fri, 4 May 2018 15:52:10 +0200 Message-Id: <20180504135212.26977-25-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180504135212.26977-1-peda@axentia.se> References: <20180504135212.26977-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: DB6PR0202CA0039.eurprd02.prod.outlook.com (2603:10a6:4:a5::25) To AM4PR0202MB2769.eurprd02.prod.outlook.com (2603:10a6:200:8c::19) 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:AM4PR0202MB2769; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0202MB2769; 3:Z+RxfDpnxvYKimkLI6YzNRvisjjGLUcqMUOW0bbMJ5Nh+Ua2BSHO7rgh/tX2HXcLAnMCDBKFjthdxiZvo20e26oIqPt51ZTW6Dgbm+EfgtLeAQ8kqXPyOOOECnjwIAAPgmFIyNWBjGxMoSvxB+T23VQMjpkQE3XkUNw+Sa794/G6h4k4bZhQJOcUiKgU+p6yP9+sCc8cDBnzcqUQF+AQti8dDInR4EdxhYHXL2NrPXGA91LBKby4U0AKlXxEaqqt; 25:o4uUwdI8k5pKdTb3LR0+X6J0KkVx2WI2N4Yr/HqGxre+d2ClKKbJ5QB3I0bbduE4Nq49JujjT4TJnB7m477Ni0yhx07s/L7IVfFVf6sEIYsbfsRJaEM30hmCcKVtgMj4B/dKqtUOZOiXBm8MNYUopjyHKuqAYqIEUqN6CbnlT3JP3X4RwGN8aEoDx3jE6j6hJLbasDpmZlD0+uMMMVtZ6NJvrdwM0CfNOKA6lP/0GQGRUNcWhKVEqgAwI0XubjcJmLZKoD8tpe1OlSloJu8PE2ji49TzB9RPtfRYImSd9tjWY9vptagdYbnfKlqZa/a1fKMhYyv/T9eVLIb2mBK/HA==; 31:JGhab47+RCn6FvExXxsKIGNsbXLAtf62GYIugmVRYdCcl7dQmda9lVfQK7207aOcwU+NHuejHdB6aCuBg1fRMopFkIEBZo1EIxgpQsGB1AuegIY60pD1ARik+QQ6wycM2duO5XmClF+JXRadwSLxrqnvAaIzRfRAKCa5n4ckGkUARVTEu6WtHyhRXOPqnboqN6WtZ1Wm8/O+pWE/ZDhPdifPE3Y3hOgPdTtLhpUq+p8= X-MS-TrafficTypeDiagnostic: AM4PR0202MB2769: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(6041310)(2016111802025)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6043046)(6072148)(201708071742011); SRVR:AM4PR0202MB2769; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0202MB2769; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0202MB2769; 4:nuYA82ClZDVURvd+GdYOIRjqvkmJQP6Z10xkzCNbcvxVVQTLH6C7frdfgjIuW5T3RuC7paWJh5OmPQMV5yfXQDqVjkNavxAbLy3TuWZXnYEzQpyfqxAGjUvbaUID65UpjFL7jxo3/clgAv3MmZYTKOTWcgbUmAW0tYChTRGsW65zYe290iZXyzVj7SjIkiAxZMIwECx4RZIF3YZKxjxl/xcC6dOAFGXvbYN1VYMMxIGJeKRKdreo65iM1mIubH6Sk+lyZPyUgOIwZl7wtZu5fg== X-Forefront-PRVS: 06628F7CA4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(39840400004)(39380400002)(376002)(346002)(396003)(199004)(189003)(52116002)(386003)(50466002)(305945005)(6506007)(54906003)(74482002)(316002)(68736007)(5660300001)(16586007)(6666003)(50226002)(7736002)(8936002)(81166006)(8676002)(97736004)(6916009)(1076002)(48376002)(2906002)(2351001)(2361001)(16526019)(81156014)(39060400002)(76176011)(4326008)(86362001)(6486002)(6116002)(3846002)(53936002)(106356001)(478600001)(11346002)(486006)(446003)(36756003)(25786009)(51416003)(476003)(7406005)(956004)(105586002)(2616005)(7416002)(66066001)(6512007)(59450400001)(186003)(26005)(47776003)(142923001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM4PR0202MB2769; 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; AM4PR0202MB2769; 23:VxUhQO64A40l3X/9a1mkLbEDNW2JusOgdVxEkug?= =?us-ascii?Q?6nT8ZNAtz7cxaTQrEsfHfE7T2AbjQ8h4PuEVp3nwSN1uor+SmyWza4VqdzRw?= =?us-ascii?Q?x65CoD+5v6MBNTdfz4QET3IJiGA4pLTzybYSnJb+lxtQl7znRp2tVgg1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ELk41xGhRmQ1VgYutD0in2GHFxLu+VidD?= =?us-ascii?Q?/Jl9nTS+Q9YhuVHcXVlzJozaurba+DCpr6hHnYgPBQbxIk+/0XZo1etLCHYw?= =?us-ascii?Q?gHkwo1L0VSpJPre8guyQ+Rxv1OxvdYCZFYcqkaoPdyuZm0s7OPGABz1s33hb?= =?us-ascii?Q?yPKv/bElVeCz/AGrkvgtOdiLN79Agkikq0WrHC417hPbjVBGSl5rajTItV95?= =?us-ascii?Q?ymRDmRMU7DfkexQ62Ko39LyhpXktqZb5uGi5qhaXLu99xxu1nPeRiiTrNsnh?= =?us-ascii?Q?X/WuUqo/P3SRL8j3i6cD58HfTMiUYTC/VCF9B/0/undvAdvG4lR0DtTMRTG0?= =?us-ascii?Q?q1fj8M1BQ8S04lqCKtDe0fP6MhuaCIyGaz6HcUmF2Rs2aeRJ3asqctShCxlr?= =?us-ascii?Q?fMaMbqo1kIQ=3D=3D?= X-Microsoft-Antispam-Message-Info: jwpROSuVEidASsXcTXkPJxx9wVGP7CKN8xn0be2H+IfXhc+6OYDfOzoxqk01095j+AKF/0Hj4D4DS8q8HCVFMXathdMSQ3VwnIPqD6GcoKplMhwv6ix5iJO5jHe8sKhq3YAisYjqBmtCloOlgwpHhEVoI4w+GjPur+lMK6zPTe1Zad7kHI4+yfs9YF9NRIP+ X-Microsoft-Exchange-Diagnostics: 1; AM4PR0202MB2769; 6:T3ePstjOKxXsIRixmhgP+hnMU77TrukeglZxEnvELBi68LSja/UP+eT7Wc4fcW0Wc4lvqjevnywZj5dbczfpCdEMSAJISSGKn22tD6/YFElKuRWvTrerc0GPS8Ty4Qzfy+i7Xu2uYsmFulMxydMYJyQStV8gxfhUh9GBLuDo3CdN3kGyqQ/kXIlR8j3fKD6nyJmE46rItfFJR74Ds665XqfyaFUw07YpJHVGBIypD4fXJFa6SZoLh2/it/s3z73QOfXcMzpevJfL3RSO8pdxLqhahEA/xnAf1+uoSJmAosfsfb43drI8eZHEVtAfI85l8DJGhzZ+KHddK71zNKZmyWp0tf4tgc96fys/agVH8uAfth+tHGz+Lkpfz4t5ZwSON6MUhD9G8RVA/ePjWh+oN7SYoO+2fITHBm/IQirY3HEx/4RYM4yWkCNTQawiIzyScxrOhdMY5+Jwf0GfbtaeIQ==; 5:Fz1aUKf2vWxB3LJddLJEoogUXNo6EwqFWtTEUzdfRdUmnHs2hPTYCkKXQqapj6zx3lLuNOQm+Tdxi2fe8wQGThef6TmgrIS56B1XGDgugVT5XLb1y4+MKqL0DCPuPbrxiTQhcew26r4Ubf0MnC7AcXlNp2s3xDevmmJr6vDqipQ=; 24:zd5LAfRtwXIbrbCksij/m0LPZLPBKTr3BrMCNt3TusO6wgnQc1yZaK8td8YV1BJtEM4FCfMVQ+ho5fo2kkjvkGEZhYuwL8f1NP2HLZ7HZ/o= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM4PR0202MB2769; 7:WzbQm9PUVAdo4vqQNFT48XMQIEuTgxzck07/2XsZTm/K9xvN6zZDCq0jTxtP/Cp0g2zLzl3Neow3a71Le08CkmoAPJ7z+eAsukbv+KmCQMF0Y/5QHrM76ceHhhjQsnXsWCfsSLk2oku/PrKBdGNsgRFHmyCoznRr4z6HgAqdLHioVmx9FfAyORbLZECaMeDbwHhPFlhL5N8moSw2tyomGbPpEScNW5AG7xshQvlTGvn8nl0toRko/6aBMk9qwng2 X-MS-Office365-Filtering-Correlation-Id: 3840fc27-19ef-4636-8cd0-08d5b1c67325 X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2018 13:53:41.2985 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3840fc27-19ef-4636-8cd0-08d5b1c67325 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0202MB2769 X-Mailman-Approved-At: Sat, 05 May 2018 20:07:54 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martyn Welch , David Airlie , dri-devel@lists.freedesktop.org, Laurent Pinchart , linux-samsung-soc@vger.kernel.org, Kyungmin Park , Krzysztof Kozlowski , linux-rockchip@lists.infradead.org, Kukjin Kim , Peter Senna Tschudin , Martin Donnelly , linux-arm-msm@vger.kernel.org, Jyri Sarha , Matthias Brugger , Vincent Abriou , linux-arm-kernel@lists.infradead.org, Seung-Woo Kim , linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, freedreno@lists.freedesktop.org, Peter Rosin Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP It is unused. Signed-off-by: Peter Rosin --- drivers/gpu/drm/drm_bridge.c | 3 +-- drivers/gpu/drm/rockchip/rockchip_lvds.c | 2 -- include/drm/drm_bridge.h | 4 ---- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c index 3872f5379998..df084db33494 100644 --- a/drivers/gpu/drm/drm_bridge.c +++ b/drivers/gpu/drm/drm_bridge.c @@ -365,8 +365,7 @@ struct drm_bridge *of_drm_find_bridge(struct device_node *np) mutex_lock(&bridge_lock); list_for_each_entry(bridge, &bridge_list, list) { - if ((bridge->odev && bridge->odev->of_node == np) || - bridge->of_node == np) { + if (bridge->odev->of_node == np) { mutex_unlock(&bridge_lock); return bridge; } diff --git a/drivers/gpu/drm/rockchip/rockchip_lvds.c b/drivers/gpu/drm/rockchip/rockchip_lvds.c index 557e0079c98d..e77d4c909582 100644 --- a/drivers/gpu/drm/rockchip/rockchip_lvds.c +++ b/drivers/gpu/drm/rockchip/rockchip_lvds.c @@ -377,8 +377,6 @@ static int rockchip_lvds_bind(struct device *dev, struct device *master, } if (lvds->panel) remote = lvds->panel->dev->of_node; - else if (lvds->bridge->of_node) - remote = lvds->bridge->of_node; else remote = lvds->bridge->odev->of_node; if (of_property_read_string(dev->of_node, "rockchip,output", &name)) diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h index 7c17977c3537..b656e505d11e 100644 --- a/include/drm/drm_bridge.h +++ b/include/drm/drm_bridge.h @@ -258,7 +258,6 @@ struct drm_bridge_timings { * @dev: DRM device this bridge belongs to * @encoder: encoder to which this bridge is connected * @next: the next bridge in the encoder chain - * @of_node: device node pointer to the bridge * @list: to keep track of all added bridges * @timings: the timing specification for the bridge, if any (may * be NULL) @@ -270,9 +269,6 @@ struct drm_bridge { struct drm_device *dev; struct drm_encoder *encoder; struct drm_bridge *next; -#ifdef CONFIG_OF - struct device_node *of_node; -#endif struct list_head list; const struct drm_bridge_timings *timings;