Message ID | 1467618040-13799-1-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 271C660572 for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 4 Jul 2016 08:08:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 175C2284FA for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 4 Jul 2016 08:08:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0952A28522; Mon, 4 Jul 2016 08:08:06 +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 CB5D9284FA for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 4 Jul 2016 08:08:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 99E276E3C0; Mon, 4 Jul 2016 08:08:01 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 1117 seconds by postgrey-1.35 at gabe; Mon, 04 Jul 2016 07:47:53 UTC Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0072.outbound.protection.outlook.com [104.47.33.72]) by gabe.freedesktop.org (Postfix) with ESMTPS id DA05A6E392 for <dri-devel@lists.freedesktop.org>; Mon, 4 Jul 2016 07:47:53 +0000 (UTC) Received: from BN3PR0301CA0065.namprd03.prod.outlook.com (10.160.152.161) by BN1PR03MB251.namprd03.prod.outlook.com (10.255.200.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16; Mon, 4 Jul 2016 07:47:51 +0000 Received: from BY2FFO11FD033.protection.gbl (2a01:111:f400:7c0c::120) by BN3PR0301CA0065.outlook.office365.com (2a01:111:e400:401e::33) 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; Mon, 4 Jul 2016 07:47:51 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=fail action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; 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 BY2FFO11FD033.mail.protection.outlook.com (10.1.14.218) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Mon, 4 Jul 2016 07:47:51 +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 u647llJq004034; Mon, 4 Jul 2016 00:47:48 -0700 From: Peter Chen <peter.chen@nxp.com> To: <airlied@linux.ie> Subject: [PATCH 1/1] gpn: drm: fsl_tcon: add missing of_node_put after calling of_parse_phandle Date: Mon, 4 Jul 2016 15:40:40 +0800 Message-ID: <1467618040-13799-1-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131120920711145482; (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)(1109001)(1110001)(339900001)(199003)(189002)(19580405001)(92566002)(586003)(50226002)(4326007)(97736004)(77096005)(106466001)(11100500001)(229853001)(2351001)(48376002)(19580395003)(110136002)(189998001)(50466002)(69596002)(2906002)(68736007)(105606002)(86362001)(36756003)(6806005)(5003940100001)(87936001)(81156014)(81166006)(7846002)(85426001)(47776003)(8936002)(8676002)(8666005)(356003)(305945005)(104016004)(33646002)(50986999)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR03MB251; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD033; 1:bCWIdYA/UphhM05fU2s4dfCWOsIJMeJTavTEwnclu2ASDCcA+vwY0RZhqi2pQz3NNoja/gF8OVCDNbKnCEej0NtV30wqbskTU2eOcVfx60f22SSpeRWCNEkZp3pe3fIBdp88XDQ17xnqtVWfLpAdX9ubOVrX6PV4jI2wxFWdtPn2v986JoBimX1gcxBQASDAhmp+QJG0Iq0AoWicOvjpH+Ny0hgZpPlYCw4SdDY6E8Idzn+ChKqIcHYgZpoupd/I6QTBDmohWvokvo+no0VKKZLP+IO2yM639sumo0J8ZhQSj7MkzMszjXLJ1hChhekONuGMsOXnOMCFFiGQgCnbCyQHCQhdHAaOUGnvxnJD5zgrrTfHriFsgKr7YBVfB4bRljDkQ+fOzw8GSmsXsMdvV5YeJo21jpt1QL8Bs1I0tEo75MOgBH2BszAOruKtb/UHBT0X9ICw3x/Q1LDctRqOA9Mv6GR43yzFWSNm9J7EFYIlVI6WO98ialeM6HhizkVMVbBDOZ7HbelMxMHn7tLkJQX5ya0Xi9x9Imfbv9U3onx30z+7+NPd9ftSmkkmwfOEhIxcVesLnmT+TUxwY8vXwPm/ez/sVM5HSZBNcdVmShgkYsltbLHQFj+OamrRBYcHbWFuTBWfQlEIbYCni6iKeGH/48ZNxNiCB3X+lbC474w2k6nWl17pHnqB2wOzLlOr1ettsaZvMSK8C0g1xXpnCwQEML7s8sTBpSvL06D4ednz+otg6lcgJD1zC5Self0+7Dma/Nr1Djh89hAP6cTlAQ== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 686ca70e-2172-4085-280a-08d3a3df8013 X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB251; 2:yoOhsHoSPDNBSk41Juo6uRpnLklDZc+rVtGeEvJWtaWqND1Resu7gt3CLOOhdQoLsNmSXt2JtdwhC1m79ZFrpC4cfSZxqP4foNkBojS/VYQ8OJdcP1cJZyFtuELtoK2HGPQeWpSYKt3V/2PJpWYZO+c4WaVmoXqOS8+xSABLk3fwa13qW8n9NSE2i6YBc3Iu; 3:00FaBZMJz6DiLh/1qOeSKRIBJhcaG4fi8kusvnY6DqsgnDo9rwIwPaP2hMe+sn9L3LTZu9KVJQgZRg/FfdUC3JcYhRfTd1U29uljru9jXYbTCOmMM63WkQdYgPkN8hItGGpDNvT3T6TBH1zJN5BiseTQNb5aXFomcNjD6g0MZ+Q1NDiZfnHBmCxY1GSFLTNeemvpxdJnDjP8T7cwz53leqS+P8DsMwUbWx9eAlGsUi0=; 25:coVV7pKhGwLMehzQiIEGfCv/etMf6/xgmXA3vJ13f2E63wzsN4ZSve4r/DKm91tm1alN0UOOjQ6LR9e+Y67OIPMZbt3iWbSfH6cUqc02TaE/O1Tb2jns6VBbSzBpK9vyXy4ozkGB5Wbq/m8e+Uy/us79UQgGa/vRJYgB8gkKAcxLdiV9y1sQ9TK97LE/sNvhLof8d00U+Wnk+NLSjUebGYDRYBpduUGmtZh7LMYzBgR9pZpO7s2iKYV6ZGZeMj251qh+6uzt04fKFgurHHOGro5KC4ovRxjy5aGl/eKpY1UwQw24fIsIuGKlwApmB/x0F8L8fBOwxAMUuogt+4US4mNel8G17Fk0hz/mPv9h/KkZDA27JyENht1E3qBhCVyawakldGzszWmXdqZE2HHDjllmYcX44xPwvgjCUG6xbC8= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR03MB251; X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB251; 31:cyInN936OXGORWKc6kiTVZqWufPnOLpKKw32KyF0k+tTectjjZu+QNnBO+Nk06lPowp9fp34YsywUMzdyfx1C93OHNKRf4qXEpJGwkpTEIpPMsiLGvR2BmCVUJRqC8kFgR1pwWt7ywOffFFPSbt0KXIBg96yoMeORUPe1q+40VaNH7eZTrKxB9KCf4JJN+WHombVNsc6GO9gILc1RxGmcw==; 4:0ar/ZJ5q/6RG7t1yVklGTAyW8EB83f5qvEUXDcwFOo24xl6cPZl27ojly3vK1xaqrRnSOSug9q3ehWqRQniAXLXjHsm5r8SDQx6zCndF+ppED9U1IM6SCKU+LAm/F6AavhLyUlQo6sn6XwCLN5sqD/pK9qDN/FFFZf7PnRtpdXT9UdwEOGBbyywg9li8GScJY//TikqYlcHhhNc4tJvXQXMbspyMoJUKotMvvG4/dnDTSjiMpb7v6bfxhLWFYSyeJnobl8+RSIeekZbkDTB3a6mSxp3hIzWW3TAXeBqZLIcvsbDvxRwnkcyZfmW3eLpLrY7viVBcTyH9JfU1kiOfdeX4mYpiLfouRwdMr3Vi7bcMYwHmzvD2Wl7YBcqaLnFNWUqLIj8TZVzwKRgLCpsy2YcypZQj9lNX+BfaSSEuCNKtmMy1WqjQQJSseD+iNXC4e8eL6qMXTFTDoYGUszW2ySMpED1j/rJhdP1Dikw1jAcQVNxRymE2N+u3dFUUBUb4jWeY+6w/iR8of3gllRpo4Q== X-Microsoft-Antispam-PRVS: <BN1PR03MB251E2BF810DE6AC4298249F8B380@BN1PR03MB251.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(13015025)(13018025)(13023025)(13017025)(13024025)(10201501046)(3002001)(6055026); SRVR:BN1PR03MB251; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR03MB251; X-Forefront-PRVS: 0993689CD1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR03MB251; 23:FbpDpyYaF5UwHWcRyWgCWuQZPyiax6U3P+Anl6YLf7?= =?us-ascii?Q?4oepUjfQgvPG2JgPcWwTrEkLDjsc0pkr5bBHWrwnUS9OuA4Bc4pqA1QIm8m5?= =?us-ascii?Q?lecJgysYoNOKozpz8mhU1wchwqafNvkibS4pZlCBnpoiNApqYLHSHXtUTwmj?= =?us-ascii?Q?8VVACOzwTXkBToPAOqVkTrwyTZEOeejrxJqxotATyL+xNTOC+4rUlpJ4S0fd?= =?us-ascii?Q?xi0hMCC6rgLGO8kRgOFrmrLPq7/oP7ylxKTUcunbqWI/YkSGyytXZ+88H4Lf?= =?us-ascii?Q?S1dzJxSg/IsAGfgunxMO383YCJK8F2ubsPo9B4d6lQFBwfeoLnj03qfdqQvO?= =?us-ascii?Q?7zygcb6sqmUtvLBdl36kSAwfKobQjohtUAB2sWNyXuGtI+ig3unzUy4wYULi?= =?us-ascii?Q?edMS3ReRxql6A91QScwySka7WiZi5+/sN94XrQlYEICZHuqX9Y+qM7Mk17rM?= =?us-ascii?Q?VV/poLeDeXny9YT9UYNKjCel+834M8gRfks2x3J/MnGAclIB5hq4Gk/evgOw?= =?us-ascii?Q?lJnxXVc70stXheX9MVe+attb1oKlLDum950EmvTLInEJGzKaJleZPBGSkbKc?= =?us-ascii?Q?z5r3M4+fHqKtM4syZEDrL+OQl+nUEelJJtnR3PG3SQbQ1ONuH1aD/qfZwFEW?= =?us-ascii?Q?s0cJZKtWtKf6OtM11m42UfOLLs+p1s4dhqaxR4uUY41lP0f7tkkwAjA/+N3j?= =?us-ascii?Q?6/3KnGV97CeK0//qvUJ4RqgDyjSg+0PaJx6jnNEopqKcVgCWRPDXSwwdwjx7?= =?us-ascii?Q?mmaYvOGD/un6iSCtSlg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myZAM6q8PbO+JxErOXrJO5jhAwxWRtFC1yekHDlgnOLKTDDa3dCxxTwUBnnKIGxdcs05psHsXR4lnK/d4fSiWTCfFBb+8zKyECkuMv57+I75YCqUy4cIrU+uBJJI95FLk/GZfJrN2nAnGrQJay55grbxjpUM4OCcnb2y+cZtFinDuEWjupEXYc+xNFxjUSTNHhPqbvNuVGV/2LRAx/41oUE3WcrwcqAZ5bE2JWgKWn/KkLQyTBF0TFwz SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2016 07:47:51.0053 (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: BN1PR03MB251 X-Mailman-Approved-At: Mon, 04 Jul 2016 08:08:00 +0000 Cc: linux-kernel@vger.kernel.org, Peter Chen <peter.chen@nxp.com>, dri-devel@lists.freedesktop.org, alison.wang@freescale.com 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 |
On 2016-07-04 00:40, Peter Chen wrote: > of_node_put needs to be called when the device node which is got > from of_parse_phandle has finished using, but current code only > calls it at error path, fix it by adding it at correct code path. > > Signed-off-by: Peter Chen <peter.chen@nxp.com> > --- > drivers/gpu/drm/fsl-dcu/fsl_tcon.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/fsl-dcu/fsl_tcon.c > b/drivers/gpu/drm/fsl-dcu/fsl_tcon.c > index bbe34f1..bca09ea 100644 > --- a/drivers/gpu/drm/fsl-dcu/fsl_tcon.c > +++ b/drivers/gpu/drm/fsl-dcu/fsl_tcon.c > @@ -92,6 +92,7 @@ struct fsl_tcon *fsl_tcon_init(struct device *dev) > goto err_node_put; > } > > + of_node_put(np); > clk_prepare_enable(tcon->ipg_clk); > > dev_info(dev, "Using TCON in bypass mode\n"); Thanks, applied! Changed subject prefix using the usual drm/fsl-dcu:... -- Stefan
diff --git a/drivers/gpu/drm/fsl-dcu/fsl_tcon.c b/drivers/gpu/drm/fsl-dcu/fsl_tcon.c index bbe34f1..bca09ea 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_tcon.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_tcon.c @@ -92,6 +92,7 @@ struct fsl_tcon *fsl_tcon_init(struct device *dev) goto err_node_put; } + of_node_put(np); clk_prepare_enable(tcon->ipg_clk); dev_info(dev, "Using TCON in bypass mode\n");
of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using, but current code only calls it at error path, fix it by adding it at correct code path. Signed-off-by: Peter Chen <peter.chen@nxp.com> --- drivers/gpu/drm/fsl-dcu/fsl_tcon.c | 1 + 1 file changed, 1 insertion(+)