From patchwork Tue Jul 5 02:04:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9213749 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 395E160752 for ; Tue, 5 Jul 2016 07:56:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C97028942 for ; Tue, 5 Jul 2016 07:56:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2130628943; Tue, 5 Jul 2016 07:56:04 +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 ACB4328944 for ; Tue, 5 Jul 2016 07:56:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 67FBF6E525; Tue, 5 Jul 2016 07:56:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 62121 seconds by postgrey-1.35 at gabe; Tue, 05 Jul 2016 02:12:24 UTC Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0067.outbound.protection.outlook.com [104.47.42.67]) by gabe.freedesktop.org (Postfix) with ESMTPS id F36FD6E206 for ; Tue, 5 Jul 2016 02:12:24 +0000 (UTC) Received: from BLUPR0301CA0023.namprd03.prod.outlook.com (10.162.113.161) by BY2PR03MB256.namprd03.prod.outlook.com (10.242.37.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Tue, 5 Jul 2016 02:12:22 +0000 Received: from BN1BFFO11FD044.protection.gbl (2a01:111:f400:7c10::1:146) by BLUPR0301CA0023.outlook.office365.com (2a01:111:e400:5259::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; Tue, 5 Jul 2016 02:12:22 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; csie.org; dkim=none (message not signed) header.d=none;csie.org; 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 BN1BFFO11FD044.mail.protection.outlook.com (10.58.144.107) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Tue, 5 Jul 2016 02:12:22 +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 u652C4pf029660; Mon, 4 Jul 2016 19:12:19 -0700 From: Peter Chen To: Subject: [PATCH 6/7] gpu: drm: sun4i_drv: add missing of_node_put after calling of_parse_phandle Date: Tue, 5 Jul 2016 10:04:53 +0800 Message-ID: <1467684294-20111-7-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: 131121583424618531; (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)(199003)(189002)(85426001)(11100500001)(97736004)(87936001)(5003940100001)(104016004)(86362001)(2950100001)(110136002)(586003)(189998001)(6806005)(77096005)(36756003)(50466002)(47776003)(92566002)(48376002)(2351001)(229853001)(106466001)(33646002)(105606002)(356003)(50986999)(76176999)(81156014)(50226002)(81166006)(305945005)(69596002)(8676002)(8666005)(7846002)(4326007)(8936002)(19580395003)(19580405001)(2906002)(68736007)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB256; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD044; 1:xJr4CRCDfbgw1pKmXSK85/vUskAbkUgp68n3fIkavXiobZEQui92Luc0HmbPy4gWk0l4dvLIsd4Cu3vkiP6ky3ZKVqbL0Q1Qs8O4jEYUypIsuukwpPVTn5uULgV/vTe2vkzG7UUUJkHlPwH6+QTCB8S/JbI6AiGaAh1LWE7LifPEuCdMAiCU2byh5KTx6UiJMMNz3ZeW07Uy3JTe85vs7HJfywAQ2fCDYUpnYR98lQpsDCYZ+BZtfa7hHKmrcMjwV9u32UJfFpkZ46C8L8U32/UXaM4Pbuz6u5CGtCWMBQw/upv1/mbr6qw4CtC6RmzGDiifPYMDbI6zmdF2xy8gXuN5IZn571roBTPezy9bgsj+z0gmr2o9Q4FNJj5ZsF+fHXWhVeXYB57HWW75lmg8ntswLBWsdbEH9CLG8MnTi0IXdLMvqpF4Kbms8Zt7MGC2yMpQRewVZL8obpn74j0szKZSE034N4of1AntBznLL96WPqOJqOq5YPn1Tge5n8VrArBAD0PJGLeUekvZwpYvKr7Q7BIzGPO6RD0iBv90yAqp6z0Ba8Ol2PQqxDbO9Jq7wo/OBZxDsW6hC/XOgfSdHBDTr2T2JT0mzjEwRNgtiJBVwrAbAKtEQbaKIqjBr3QF MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: a4206785-7cf4-40c7-dec2-08d3a479ccdd X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB256; 2:itGhQLYMt0wjQeoQQCy/kSvCf4MF0ko2bez361IBnnqLAHcrxMPjaiTkrPKZrvPpLTxtsUZWnMfRAtu3KCESy3pksb400ZD8RxfNVmLkrYwpA/3IGtWqJQqMvV6g4V3pki2l7J2F0HCsijM5qwr48P2B5SeVmBF876urlbwCuK8/05i8POdFmSWWLBea5/IO; 3:FX1AOucopSQtL9G65fuk1VUSTKUeMwaYObC0CHCCw/ganow1QOFZlTXU6sv0cIast6AFeFNLcLbUUFxB6p/Wokck/nSIpSxqjm9hJbg3O0mYaUuWVfq7eATV3WTO5WcBfOXS6DUuXrvAu4pSZwa8+1wVKfhMfscfnPiiQzug/mHwbCM1uYZWC1r6scpYSoxRpszAD+AAH5cm3e3B590nte7upI7DIE/KkBKwiO9cvXI= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB256; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB256; 25:vdwL59l9LH06uPVTWJviRTgc9L3wqElXpaF7t43kVBMXhGeEbZ0kUnISTEwY8WtA63cnTE6BqSahlh53fRAyOXyGnvT1tG3vmTyznBsOdXZViFokYzrJayGDGFj4MMgrNCs6/DI265yt91vpSPIcM+WbHmAEZPeSbDwiEeLf+ilfXu+9KCw4V0dHysjvv6QlSP5xMM7G1qRU/u5zIgEyfqmvmdXKO0Ba8RGzQmK1pNVNCvZmKOR98YM5CseTPSCUnSfA0tfjmWgEquWs52bLXWKVprPQAm8CtiT/AKTWmoNvs4F7/smZ+5itv+1/bGge2vMjGq8iBvRJ99gwa8yVt58JawyT9lQ0rgT7hAFv0M6Y2CXSVm0b6oJVY/9Wo6Tti5xLKEHVEZVl0AL1LpI/Uij/XqsKw3eBM9aYm03pd1lhJv5lpYj/3SAoDm8x7jlwj5k3FQReGDgy8V/ujKfO3CQTC6RGH0rjPoiPzYf5nPNTCMz0l3FgM1LJARZtc/v6KXbMrz+ItzR2uxt7CZDtDO0jOYPYYIHPH2SqZ8s8JQlT6YWn3DXvbUyOh+MA9GlPIZqpppGKJW+nKaZGE+5PvAbkdbV1VJiVuMrdmOs+Zj8VuVGuSm3vT4VISFQ4/HEyq+OfbSGEyquNZgFOY8LEeQKNYRo02drfveUzbhiNsSdJ0yUWwpomG1rbOwqLkuUhz/JTgT0Akd3zePcSZB3A4w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(58145275503218); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13023025)(13017025)(13015025)(13018025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:BY2PR03MB256; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB256; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB256; 4:Xdq2LRhVg6rxpDh3AkmKHZVUYEx7A84aTP/JjW/CkD/wBVmz88nSDxQ50YQ/0y2k5t3R7ixwL+lgZB4kBwP6BSc4yRxn+g2/Tzdp7VgxiMd2zb5/p09GYJci6yKUU5ZALHLOB8CIYhSL1kcihZ8U92dcA+6r1mz/2R/jBoNTs2swq8TFUnOkD/iqB5jrDO34EnYQko4IE4xEAQXcl80ZWALgtQkYBR2FDl+YFaLK9yASi28FJmqwHzZ4CCCRgH+UvLBdGkV1bAou7gGva/x8NRACY6lWdNV25jMqmTqh6zN8fwbOLWaG/E65oLtUBHYuy3QTJeKkWUQEqqnD4umhcM7t4dGsxfIwiKF01afVtXjr0mlRitpqfiOCrF2S1OPQU0pjZ87QsoR7OCSbBFvwfSKH1XPYCwGEgYB9A4XlETAHUnpd2+XhglpNmCw/sj0qwuMg+M36eOvVfYFGDnf4qU+hB3MsehYuGiqgBTJVWaGcChDFQwXh/XV3z2QzKJJBLY90gvRgGwP6GDZxr9gZgSOEzgAxAXf02OFT+xwCMFsokknOTtbMZqMr8IfO+vY/ X-Forefront-PRVS: 0994F5E0C5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB256; 23:UAzElFau08jdqkZ+uJna5g3eCPRyD6mXxOm57sggoQ?= =?us-ascii?Q?zuAFc83CL3Rz3FJ+ZfsiabCxkoIflgG00A9+aKuMldvdVSnaaxLE2EvISHS/?= =?us-ascii?Q?JvTCRqO8L2DoQ99571OLMmJgyDGsYrcG7+lHCs1O7JpSqRRPa4tPUFlrnOvV?= =?us-ascii?Q?d9DyYwlT8/2fG7/nlb+3yxnH7DULzhegMtoKo5ejdt88lvdOrYQZgGowUkT7?= =?us-ascii?Q?4egcqu7ssgIsufYAT9CETHEYINDlEDbks50TVQGIuVOz9UzoEK+P4RH97sNi?= =?us-ascii?Q?Hz5on5NvBDZMClzkNZyFwXxCLLB9ez6K+Q8crDdZPNdsHgs+1o/K0PrBzAMU?= =?us-ascii?Q?5NGMMx9Mh59HU+rbgZB205ArR+dEb18v6iK+okwvaf2VsHqAVDmCkodaxy9d?= =?us-ascii?Q?HTF9Ajc6q/netS/Y/7Px744mLEKjUbrTqu8SRubbri7CC/sPEogJ8l2DJwEK?= =?us-ascii?Q?yWB8TXnUx7nHEDle6XlVkitUssrqdDIKVlI7CcEuho3B+WsViVUTiYzQURy1?= =?us-ascii?Q?MAblfIVQPtwYq69sTV/aaNM+NFmVvpI/3+4k/8U+CK195hHl5U4RsYN1gBb9?= =?us-ascii?Q?874ghTX54yeiWOGSB2dY59ECg2vlFFVQsj3/S+h9nQQL9YBz/GgX6AXIYUuC?= =?us-ascii?Q?0Utv7f/L5/AQIdUtrqOCyRpTdRGGOm+3si9R2eiNIHxxCL9sTLm0jTjD7mj+?= =?us-ascii?Q?jOlCvyrjpxGgBgYAMcgfccDC2xQSiQ+9DkenExH207gZDZaWWZ8UfmBTgZIf?= =?us-ascii?Q?DypQGjqYuL+ZKuNdwNXQPz2F5ZtpJYPf91pTYK5hROSGMdJu3B0cIrCv67ez?=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; 7:Qz8U4zAH6LlijuLLeZ+NAXoVFJYZtyC1LolV+6QkRb5NcGx7jLItvJaWi30zrpH7fAKyZLzEGbKoFgljTxX/Fp5p4sxNVslZ6UxDHmvYBAf/8axJevGRw3tPGfrTaZzioVf2SQJW2Ea3D5nFRLHvMMSqp0V3+VyuDfdpZVZODk7/ANMadSDQW7imELDKNhTt7P0IrW9JA/bXiqvuss8D8xmel8/8NZixb/LG2RVdXJdTmxNOwREUdn6w7jnb2aL6lTKBnGeTNt0iVBuZKGk0dA== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2016 02:12:22.2278 (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: BY2PR03MB256 X-Mailman-Approved-At: Tue, 05 Jul 2016 07:55:49 +0000 Cc: Peter Chen , Maxime Ripard , Chen-Yu Tsai , 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using. Cc: Maxime Ripard Cc: Chen-Yu Tsai Signed-off-by: Peter Chen --- drivers/gpu/drm/sun4i/sun4i_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c index 76e922b..ca291ba 100644 --- a/drivers/gpu/drm/sun4i/sun4i_drv.c +++ b/drivers/gpu/drm/sun4i/sun4i_drv.c @@ -318,6 +318,7 @@ static int sun4i_drv_probe(struct platform_device *pdev) count += sun4i_drv_add_endpoints(&pdev->dev, &match, pipeline); + of_node_put(pipeline); DRM_DEBUG_DRIVER("Queued %d outputs on pipeline %d\n", count, i);