From patchwork Thu Aug 10 04:36:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9892725 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 CE37F60348 for ; Thu, 10 Aug 2017 04:37:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B35A8288F7 for ; Thu, 10 Aug 2017 04:37:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A73F828A9C; Thu, 10 Aug 2017 04:37:28 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 B9FFA288F7 for ; Thu, 10 Aug 2017 04:37:27 +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:Date:MIME-Version:To:Subject:From: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=U+mDqLNGg9g4/TeZhkJc3ol9cnIPCQ2laTts5bQl4D0=; b=G7/PVf/5U9Bm3d ySqCJkYiPrzDR6z+GXe1QV0OukElRAIWG7GS0HUlUMQSGssriTamI8sOPqZ22DHIw2hECxGF9CMPz qBFyOllh2/r5IR7u7K3xwRohGWZwi180k3SZ6Y/wBHGBLvgM69bliYPwDU+vxJ4xyw21DYPoiIGp2 2WTJrGewSAZcNAj7CcZwKkg3zcfdJ9scZBsVoORIkecbRknJeWVTGi6HegUhN5jLkjbcUzJtJ4HE/ jxuSoSHD0MeuNnCT03ydcgd5JBDVGwvJGCezb1FaEzOgcVn7lYhFjWhTj8A+L1Q3f3dnnUcOwweVp 8QMgw+HYlfeXR+mTNDtw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dffDi-0001WB-MY; Thu, 10 Aug 2017 04:37:18 +0000 Received: from relmlor2.renesas.com ([210.160.252.172] helo=relmlie1.idc.renesas.com) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dffDd-0001V5-9G for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2017 04:37:16 +0000 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie1.idc.renesas.com with ESMTP; 10 Aug 2017 13:36:47 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 4C38E60227; Thu, 10 Aug 2017 13:36:47 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.41,351,1498489200"; d="scan'208";a="254146267" Received: from mail-hk2apc01lp0216.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.216]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 10 Aug 2017 13:36:46 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=WemyMkI65zPvNXi4Za0h/tUplaE7RvND+DVuoVTNiqk=; b=d5ciDFoec3rzBuULu651GWaB8mugeGA3PYtoyQIZeU9sS/Gc3n5D0LdnOsCTmdirD0Db48/Z+2vjPV42zzAbohDj8/ykhxnuodTxvraeADtQBnMBNrEZmXzqZJXeWFVsC9NOnPWl2skC+pntWKL8G9uXHnc+OHmTPPft2rJ4R0E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.138) by SG2PR0601MB1887.apcprd06.prod.outlook.com (2603:1096:3:9::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1320.16; Thu, 10 Aug 2017 04:36:43 +0000 Message-ID: <87tw1gxcx8.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH] drm/sun4i: use of_graph_get_remote_endpoint() User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Maxime Ripard , David Airlie , Chen-Yu Tsai MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Thu, 10 Aug 2017 04:36:43 +0000 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: HK2PR02CA0209.apcprd02.prod.outlook.com (2603:1096:201:20::21) To SG2PR0601MB1887.apcprd06.prod.outlook.com (2603:1096:3:9::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ad76f34d-0b0c-428d-85dd-08d4dfa967be X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:SG2PR0601MB1887; X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601M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v7Uvaq6CFvvfA54L6cL/D814ZQnd29QQntSkXXYTxC+8ZKLX2252YWXXCBoJOPCJa13f9m/OxTWWZXmoSgtC4lcW7qBzuYaS/pxEa/JXR0GMADuxPUN2QiFtYExkPdHYf8RY6tmnmqFTctL71ihI7jEGeXBKb8yYanlL3Bm8qwgIHUKhLZgLf6gXf4P46ljtmPq9CAv33bgnB+MNUq6CI4n7RlJOk9Xr5mwgPwV7q4PgBf5fotQyvPSgq8F03urVFCS3uhWvO/6Fjt22riAiPvAnca6urGa74tvrRAKWOfVj1H9YPOW01y2NTanhL74nS7VoU/D62ZZrw27JI6T6QQrLezbFFPixLABiPPAC8ftaL7; 4:KGI93FrvGMMpOIDX18bFul5aw8HLtJya3JYwjXC7sy2WJmL9/Q2qhFdcZioDs137q/CblYUQugP9BUzJ8Rkd7lADL+7qIHvr59cpD+t6IZ+ZzI4qcph+SNhnXEQLa6i8rEpopSZEnWFph3HrwuUMzVjez6Sw0mdo2GMptHwkELpOYK49IHH9cbhN9SdlLgj9kjHiyIVgIBsMTwXk4fM64eIsxe1hEbj52ezTWPl+XlBgWwxktGkzwzJkJzyuzl7v X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123562025)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SG2PR0601MB1887; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SG2PR0601MB1887; X-Forefront-PRVS: 03950F25EC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(7370300001)(6009001)(39450400003)(39840400002)(39410400002)(39860400002)(39850400002)(39400400002)(199003)(189002)(33646002)(106356001)(105586002)(47776003)(66066001)(83506001)(50986999)(69596002)(25786009)(478600001)(3846002)(6116002)(97736004)(189998001)(54356999)(50466002)(4001350100001)(305945005)(7736002)(38730400002)(36756003)(23726003)(68736007)(86362001)(53416004)(5660300001)(101416001)(7350300001)(2906002)(4326008)(81166006)(53936002)(81156014)(8676002)(6486002)(42186005)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR0601MB1887; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR0601MB1887; 23:wzq+ZnDh9PIyePvf2bZjmH70aY1KRh4a8c8l4tl?= =?us-ascii?Q?A4okG3fmlHrz2YJ1RxFfuVS9AOFe5VV6WCMXXFHspXTDz7j7UzdyA/C1PinB?= =?us-ascii?Q?MOY8WlE0uAXJDUnbvIuX1GaHOEmxwy4rqN0jMqdYIMgI39mmoBT1KY35zwlU?= =?us-ascii?Q?TintwJVImhMq2W7jeF19CpFk24oSO9tTsvom3/gzYv+Nx7VUaOnSYFO3hX2U?= =?us-ascii?Q?oTq29cgd4tyY4WtlbGvZgRp6RQvHZPtzIUBXzIPS9T4VXKj/SRw+NgtK1Jl+?= =?us-ascii?Q?lpo3R1DT+ylpn0wjB9AQumalUzyNwLCZqbQzeUovnJy8XssHS0SQJzVU83hh?= =?us-ascii?Q?BLx0pZfjygDcXWKpX+MC5V4syoT8xfkKMvD03bektx3ZXAFFBWjMTikgG8BE?= =?us-ascii?Q?fy45cjmajOIaA4x3MBA9lHiixXyB8dyYhj+cnLhM8nDpeYi0KXEwNkwW1obW?= =?us-ascii?Q?V+qLY8obvDWo1elK+ingWEZLsl1hNaDu8T5ug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Vc3hBjlK7hu9O3vRcJLdY//4clisvQbnsP9BGc5YfNQrl4LKlTZRhYNLzBNpS1qoS8q9nD92Yiji0Rx6uu0DFXZi4uL5JHESmbR/EWCb4dbKAgOtjr3oIPtCIbPI6eVX4lEdfbc5cBNxPBadhk6NDxoHHQ+/avggfudmvI1n1/9n1lG2afN0FMxfoskIBncMV8gQccz+9i7EmrGaE4XmyI+/uGHGn+WpQMwqcmtnmxQ==; 5:DZvF3ivcIAOcuhZh1GKt2v65dn8ZjNtR5LzBIjkYrZdlwoscwH5zljCMTWt0dh/2Nx+FNTmxs1WVFiKk//2CAA6M27b2vNEABJE1W7IDCkdopCsABJ0DTiuMx5xDfKWrtPbGIJWtG+O305n8C9nU/g==; 24:aKym7X0gb9/RHrUxjUWVgaz2OcDCFi0ewdyhaT1r65k2f4lh5rrBcViVFhNnAMAq8x1Wo35zkzYN3qEtwT6mwNHw8ITAAECN/Y3ZiT0EODw=; 7:6hvRARhNx9khsoTPKgM+bK2lQYYE91Mdvd30iCSKiiiE4/0gO/8iBxaGwhRDsGfkl4Y4l50hHsd3O18KYAXCemq7+G+RfXIjEpJW6SS0G/zKPHdfBa99hfe/PDhtKibEXDLPYUNsOsLGo2uuNrlJGKJhXOlJh8wTg4tNWBQDDK9pwGSJG/Q/Ys5RHsAsOGqiXQwyteiYpGVU8B4GSSaKtVtY7Xw7M2M8jJnhqbcqNJw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1887; 20:J8GwQTbRu0NelYXrOvZ4gw8wLi/yd/Q8MfaaSUVU6d76oU0WOE0PcGVWvVEHE9NGC6PYHaGLfgCp+MPZdYqxsZtl848F3pffRTR7PVRluur+kJUOUl1RCIhvXOy56qMhXnF2/XM4+DJ1XzBVGcV6CUsyzdPNPIXu/Iajaa5+ydw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2017 04:36:43.7370 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR0601MB1887 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170809_213713_895470_C1D9B840 X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto Now, we can use of_graph_get_remote_endpoint(). Let's use it. Signed-off-by: Kuninori Morimoto --- - Not tested drivers/gpu/drm/sun4i/sun4i_backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_backend.c b/drivers/gpu/drm/sun4i/sun4i_backend.c index cf48021..ec59436 100644 --- a/drivers/gpu/drm/sun4i/sun4i_backend.c +++ b/drivers/gpu/drm/sun4i/sun4i_backend.c @@ -312,7 +312,7 @@ static int sun4i_backend_of_get_id(struct device_node *node) struct device_node *remote; u32 reg; - remote = of_parse_phandle(ep, "remote-endpoint", 0); + remote = of_graph_get_remote_endpoint(ep); if (!remote) continue;