Message ID | 1467684294-20111-6-git-send-email-peter.chen@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.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 03AF160752 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 5 Jul 2016 07:56:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAA6928942 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 5 Jul 2016 07:56:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF58B28946; Tue, 5 Jul 2016 07:56:00 +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=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2E2728942 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 5 Jul 2016 07:55:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DD20F6E398; Tue, 5 Jul 2016 07:55:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0073.outbound.protection.outlook.com [104.47.40.73]) by gabe.freedesktop.org (Postfix) with ESMTPS id 575196E206 for <dri-devel@lists.freedesktop.org>; Tue, 5 Jul 2016 02:12:22 +0000 (UTC) Received: from BLUPR0301CA0022.namprd03.prod.outlook.com (10.162.113.160) by BY2PR03MB585.namprd03.prod.outlook.com (10.141.143.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.534.8; Tue, 5 Jul 2016 02:12:19 +0000 Received: from BY2FFO11FD057.protection.gbl (2a01:111:f400:7c0c::136) by BLUPR0301CA0022.outlook.office365.com (2a01:111:e400:5259::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16 via Frontend Transport; Tue, 5 Jul 2016 02:12:19 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; st.com; dkim=none (message not signed) header.d=none;st.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD057.mail.protection.outlook.com (10.1.15.235) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Tue, 5 Jul 2016 02:12:18 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u652C4pe029660; Mon, 4 Jul 2016 19:12:16 -0700 From: Peter Chen <peter.chen@nxp.com> To: <airlied@linux.ie> Subject: [PATCH 5/7] gpu: drm: sti_vtg: add missing of_node_put after calling of_parse_phandle Date: Tue, 5 Jul 2016 10:04:52 +0800 Message-ID: <1467684294-20111-6-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467684294-20111-1-git-send-email-peter.chen@nxp.com> References: <1467684294-20111-1-git-send-email-peter.chen@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131121583390719402; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(4326007)(8676002)(81166006)(81156014)(33646002)(586003)(19580405001)(85426001)(189998001)(2950100001)(76176999)(50986999)(19580395003)(69596002)(8936002)(2906002)(87936001)(48376002)(92566002)(77096005)(305945005)(97736004)(7846002)(50466002)(68736007)(50226002)(356003)(105606002)(104016004)(2351001)(106466001)(36756003)(6806005)(110136002)(11100500001)(86362001)(47776003)(229853001)(5003940100001)(8666005)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB585; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD057; 1:xmuPfs6g/gzeflnSVCEKS/qYFXJV49LuodKIhXaC6rC7OAuSgiyGH6swaqiod+jwZYDTYuVQy+G8TItdksCUSUnjJ7HFmr9AjM6Co1SQXMDk4Kb1OgQlIhnCEaIWkViKWATNc2LIWW9NryAXVaF7UF//YDM5JAGDiJR9OQ10SO4GVrYMCKNxJyDJDuCYCIYSIAiBXjZp07ldMXSVj2XDgOMVNS0bRwnQ0RuX8zMLLCOF/tC7L2aAtQX4c65dVKFkKU1Qj7zchPAqwp5OL7LVKdT48sEmpQwDhYzWSjOe4bWwEvRM+iwoqOqTOcWHyteeTfVgEmR4910cpqcOykbHP+HZCO54AN6bUdkV9eKDc7FHb1te17iN2PfPqXJCgJ3bZuGzK/HpUgHZs9J+kPiFmbEK5X4yu+/K/520wAo9dwLge41es0O9FnsqqO8t2pE3FRpUYA7O2LQmFMrxR5x6UmSIL+iMgOUbSUO894MeWf07wBh6xynQi6zaoS876nq5szPjA5NvTETieiMRn5ZUXk9IVgjqymAHUx86i3FuaBviKZ+QcjcA623BeWos6MyF3Xt7iofRZVD7qAcjU908YCc1l89P5gSSurBB0tVVqwMWd6XPTb8SM2Mm8KHi7L8K0Mefx2pjkzvEBmI1bkUnVA== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: e94f006e-3536-49e2-fdaa-08d3a479cada X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB585; 2:kqDVk6s74uwiQ3n7acuuQEb94VONFqGqffYhgJIDeh4VDQkObY8FtTTQieLurwGJCr8Zb1ZGEtuM3ErjJ1hKyjOFomU5HHjIjSiKn65n2qybbohYkxi1Bvrum/Hv0TCm4qt2ZQpYsCfV9Mbvz1QLfWuc+t51SEZ3aWGLAwrv0LQ6wherDQV3kMOq8qEGSFkf; 3:XLVaHZ69DDEATM9JxvJWkCtF3sE/oX0uY8V7XhAyB22NFEmz1hwfH87HkqTI7tfxLs7VEnc87nNs2F49N3f8OkTfPZQfPngdsf27QG03jZNBzBk2Xna39BZ0EhGXlQvoqurF57lJnohMG8u3lZzq9TY7+RJ9ZXySGUJBvrodgSdAgFTh6JSdCPdZ6xq3uWSAr5v5dXkntntM1Tnh1TlD+kIObF/2RLa3a9x3d6OSTdg=; 25:FSr7qbO0gzoRAVsepK+e5qQC/pftsxcu4Ujddws5mHcoXfhSAA7FmDpezyijpZ74wfJhP2Udh76MRUTVXx/L4+ybuEHTdEwB3gDVTGSGW5vABQxFSfqETkuVgDj1u9/p8+vChwKgLicOVnvl3QuE2eGqRWJ99LKdHsjkrxAxzXHa91ojcUkxCauyYSWu4GwhDfrrEvcNiSSIm+7s3PGzZHmC55A9rwSSUWZXtop8KzAZrPoY8jy3fUfFVAvv+nngL/gsWIxrXNOxn0Bca1p+jnBSNaCQm8hc+gEIS9HuodQiY4pAcksw8cKh02kx8G++Lfw7pWAZspNEYdhQBtg5fA7UFMI9hlAkV8DNA/TsNIuvBByte61YpBHu3BbSuU34Mx8cL8GJwr8ADDtMR3yH+6/79KPkMJYMI6oIUS3DY/w= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB585; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB585; 31:4ig0o3brVthATOZ+eaVevQWiG+TpLCbnUiwviNmlqZao4DxmDeMsfxrSmW7fZynfpv4Lsu5e/zLG83Wz5xsBFHGsLI3lIb5CMzRDLS9caHqfPI8Ll0pscQPUpEBZfDNpdt6DDklZZ/BJRKiVPJ2hZMIQowEBS37EGcdbuPmCmZlaOYk51pjVoow/NbctdLo7kM5YdxEwKxfV3eyhgXLVGQ==; 4:7FSIJlP4QWwo5TVN447ouh/XXJ9d7QASFfh4KDpG3QeVdFVx9Oc9B9E6U2CT4Exb2qoKWDlrDoeqLkrhdY22NcEiV8519X0t2aa62KuInRPvU1esWxt2qzwlVd2d2xvuVmI7Fqiprxi0TIw2/fl9vPSTAuQoPBZ5wk2w1h/lhHRodrXYBMsZIPF0P1L9lDsAE60cL/ef6pttBgP3/39EG6PJTluL3F1dZCfvS/zobx9+eO14kAnwsP0De7W68jIPYvdVFavLEVmkAJX3AtyXrrLq8p7zO3RpP4pPdLqrY620fd12645Li6YahT6qKaNMODugt5YT7EH9STRgO1uoJqvQIHaiXARAnwGENc5XUkAObPwY3/W4RIeWzlpe7wfRZ318f68co30FNSN2ODGOc3YIw3x34P0R0jFFRFxvJPuS3fnxsFE+VfqozaZKO+fKTLMPdNs8EgoGKjY8SNVsl6F9sRZi69KVrm7eKUNrFIx0Qm8VmgnMfxw2OAC+xwEqggqzZPfXb3Peou6zy8pDHA== X-Microsoft-Antispam-PRVS: <BY2PR03MB585A1943DD9475C04F837F08B390@BY2PR03MB585.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13024025)(13015025)(13018025)(8121501046)(13017025)(5005006)(3002001)(10201501046)(6055026); SRVR:BY2PR03MB585; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB585; X-Forefront-PRVS: 0994F5E0C5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB585; 23: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UpvRV6FXMj98ccmEdjzcf9mwrIld6ohMfHWh7IdFIEH2L2H1J2v7ZbU4RxHw+CqONwOghH+nbx/PYII3Oyrw+IVJpSuHF5gi4vuvW8R2a6ZQ2UZz+coBLmfIJY9v4AA+SYVktrCh43OebDV+b5zxwJqIbRHC0a7/YL8u4TnESP/dUVB5nU10+PAvsfd4 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2016 02:12:18.9627 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB585 X-Mailman-Approved-At: Tue, 05 Jul 2016 07:55:49 +0000 Cc: Peter Chen <peter.chen@nxp.com>, Vincent Abriou <vincent.abriou@st.com>, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Acked-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> 2016-07-05 4:04 GMT+02:00 Peter Chen <peter.chen@nxp.com>: > of_node_put needs to be called when the device node which is got > from of_parse_phandle has finished using. > > Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org> > Cc: Vincent Abriou <vincent.abriou@st.com> > Signed-off-by: Peter Chen <peter.chen@nxp.com> > --- > drivers/gpu/drm/sti/sti_vtg.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/sti/sti_vtg.c b/drivers/gpu/drm/sti/sti_vtg.c > index 6bf4ce4..0100c7c 100644 > --- a/drivers/gpu/drm/sti/sti_vtg.c > +++ b/drivers/gpu/drm/sti/sti_vtg.c > @@ -432,6 +432,7 @@ static int vtg_probe(struct platform_device *pdev) > np = of_parse_phandle(pdev->dev.of_node, "st,slave", 0); > if (np) { > vtg->slave = of_vtg_find(np); > + of_node_put(np); > > if (!vtg->slave) > return -EPROBE_DEFER; > -- > 1.9.1 >
diff --git a/drivers/gpu/drm/sti/sti_vtg.c b/drivers/gpu/drm/sti/sti_vtg.c index 6bf4ce4..0100c7c 100644 --- a/drivers/gpu/drm/sti/sti_vtg.c +++ b/drivers/gpu/drm/sti/sti_vtg.c @@ -432,6 +432,7 @@ static int vtg_probe(struct platform_device *pdev) np = of_parse_phandle(pdev->dev.of_node, "st,slave", 0); if (np) { vtg->slave = of_vtg_find(np); + of_node_put(np); if (!vtg->slave) return -EPROBE_DEFER;
of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using. Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org> Cc: Vincent Abriou <vincent.abriou@st.com> Signed-off-by: Peter Chen <peter.chen@nxp.com> --- drivers/gpu/drm/sti/sti_vtg.c | 1 + 1 file changed, 1 insertion(+)