From patchwork Fri Jul 15 03:17:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9231173 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 7ED6E60574 for ; Fri, 15 Jul 2016 05:22:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70EB527FBE for ; Fri, 15 Jul 2016 05:22:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6598528319; Fri, 15 Jul 2016 05:22:19 +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 D6C8A27FBE for ; Fri, 15 Jul 2016 05:22:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 923186E935; Fri, 15 Jul 2016 05:22:13 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0055.outbound.protection.outlook.com [104.47.42.55]) by gabe.freedesktop.org (Postfix) with ESMTPS id 861696E061 for ; Fri, 15 Jul 2016 03:25:03 +0000 (UTC) Received: from BN3PR0301CA0028.namprd03.prod.outlook.com (10.160.180.166) by CY4PR03MB2504.namprd03.prod.outlook.com (10.168.165.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Fri, 15 Jul 2016 03:25:01 +0000 Received: from BN1AFFO11OLC001.protection.gbl (2a01:111:f400:7c10::158) by BN3PR0301CA0028.outlook.office365.com (2a01:111:e400:4000::38) 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; Fri, 15 Jul 2016 03:25:02 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; synopsys.com; dkim=none (message not signed) header.d=none; synopsys.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11OLC001.mail.protection.outlook.com (10.58.53.72) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Fri, 15 Jul 2016 03:25:01 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u6F3Om1H008057; Thu, 14 Jul 2016 20:24:59 -0700 From: Peter Chen To: , Subject: [RESEND Patch 4/4] gpu: drm: arcpgu_drv: add missing of_node_put after calling of_parse_phandle Date: Fri, 15 Jul 2016 11:17:05 +0800 Message-ID: <1468552625-23546-5-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1468552625-23546-1-git-send-email-peter.chen@nxp.com> References: <1468552625-23546-1-git-send-email-peter.chen@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131130267015440448; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(50226002)(106466001)(4326007)(68736007)(2906002)(97736004)(47776003)(105606002)(8936002)(92566002)(5001770100001)(36756003)(5003940100001)(87936001)(81156014)(19580395003)(19580405001)(81166006)(7846002)(6806005)(104016004)(8676002)(76176999)(8666005)(356003)(229853001)(586003)(86362001)(77096005)(33646002)(85426001)(305945005)(50466002)(50986999)(189998001)(48376002)(2950100001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2504; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11OLC001; 1:/yAr3DSNYB4TbwatHPHQ/SiGo/20Ey5XH+nnLN23KLMHy9zj8tDJJ0ohPC1XvslpRW1LxfkxUGPTfW5jPJkXv5W/oIzCUVTiRWTCcNh8fGvEawDRiSK7I0VQCaBYUC20tBEESqMCjOebqOU55vQBp9qujtYiBHaJMiOjwrGVf9EQb7pBv01QNiwsCUWDDxO73ff8O0EhjTMuqXc+x+nD2YhsFXW2HZCTfZKtB9PlZUTQPkFTvNxUUvheRWgWSIuHg3BFWHrehvvUUXkGkfTk3IEorOgzqpku0gxn/9JWSXM4xh58lkn57fhI+byBoqvTrVDlua9AzU/MbFiM8xaBo0jyCnwKhsvdTYKsHDmnFuov8zjmYQ37ae3YwYqTfBaPyiNbwHNhF273xJzBUk0VPa1gn9bW0QbCxKT7L8akDg7KgaseEq8p314ebULGbDgA/GOUAJZyZV1QUh4WH1FHcZW8slGwgGnMyr8etBtCBRFF8CymM/QKoWgB7gSu4vnNWT8alv6VqOGAQPYDinkzPuykNCHrCNGNDivf6FZTuIlIQHgF1T18EaA9NS7UNhC2RW/3F3OLSyNZTFaJLyqqeBgxqNXCHz1hox5Cx5JARYXiviZAdOsYWMBojcOlOtGi MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: ed8bc00b-2cd8-4145-e840-08d3ac5f9b38 X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2504; 2:Puk+fZ5YILk6WcN5MUVP+JH9fqrh34yqEW/Uiah0tkanC8F1752xLpznbN7FWf23CgutVE2V8u8RkmqLLMqRMXD7JRWc4XBNISoyQwi/9a/rJNtXRbKBEdah4rRD1c94bT4lkqp6EYHaT8wDWJZeCTjjN+7CLC/hpdt4k0K3YaJKXbeKubyRPRslzCWqcqGj; 3:R491eBM+GzaBLrAG1imXTBezTH+P8lfkNLT/2/SOQZt9o1ybCbFedvnE+Rbcm0+7TJ/M6CBnQ/Mmqau41AIdo7JK55vx5Dnb1MptEWcMJejaB7iKKFXqhzUaE4goIcmc3oFlP5aPH/RI0tc1gieEJh39rX9CszMF1PuzZOBxcSC53BKWdv69AlIPhdTCub4wTh5fRxQTDyFR1/dVvAB1cqbna9WlxCzn5O7QnMe4gQY=; 25:vle8BKqK4Qxc/ybmoWS8692Y0Fc7YJstDpz1urYoi/q7Wfar9/IPR6+7uUNKq/msyAwe1bcN7VEG47O17nrglOkvuTIE4lOaoKHsoyUJBmC1aH6HnKkVwjtTb6Be39fodLFnjU5n3zgzT95+GcQh2MufyxXxNOJXkt6z6CvM0bTol0K1JutwwmAvjqREFA9nbBZK50rAG22+mD7w8/hH5IhuG6CmRGjix74eY6OKQBirUTHFs9XHRizBZgCTJfK1gzN2HtVUUfldux+0sKL8FM6TjD81pFoLhz/VMvYJF94bdfihi1W4pzaEy6sTbzI8sjIIeywflnBb2h9t4pL1e65WWpVDk1TqJ1ETOR0ThN+vAdi+snU/YWt0kOJAyziaiF8WvVhcVQjdBRdxOU9xlw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY4PR03MB2504; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(8121501046)(5005006)(13024025)(13017025)(13018025)(13015025)(10201501046)(3002001)(6055026); SRVR:CY4PR03MB2504; BCL:0; PCL:0; RULEID:(400006); SRVR:CY4PR03MB2504; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2504; 4:uujGPWDufo/znEtpGTMvYvKmJroWh9jVqtklCYLAnKyThOXBACOHk1seGFUOrq3CboROEUYEzISCmh1UUWpBNcoYwWLPwZXAI5+faumQs7VnjqxmEWvwKAdbZOmlxemEmdfzvqtthKJ+aYIdWcVsXowhjgMQ5W9qgLFGINFTd4TgxhIrm+pYiIfeEvYy8icif6krcnpiwciVhbLWCChpYZP/zg74tLeAPdd8ngLdK42Zyt6IS8kQ0cQIWdE4GwvVqgUfcQ1fwYbkrnDw9zQR0SUkUtzlwBWJ6ZjbsMAT9IAt66ZFiNOgVGR6pdhv0d7YpjKyfNIQuSVyjooYd+rjVdUQcFc/K9CFE/7ZiOENLb5mylFOKrJvdOnTha8ThYJzoeOFXE8J17H0rBqwnG6lC/daBLSX5DtqoHtgQW2PQfBjgOKSlUEtRM3KJEcLBr43GnbgkikFTH081RERRYoxRfPsDRGUulXMI1leuWB3mD8gzpYxuRnYn2sIrg10NCX289enxG8oS2BnnU5jr1+7cQ== X-Forefront-PRVS: 00046D390F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB2504; 23:BTr+xswuhAlaXo+68k5/l4d/rYjgLQRLPM/henVDB?= =?us-ascii?Q?qX1qcsfuujG7MbBZMjwMsc5JdG4HqK5JSohGrKuv/RbHyCzGUP5xR+nyOCLj?= =?us-ascii?Q?s/5O0SobL0k5GywuVlkc2zsUJtrgdCdfBcHtVBO9jfXTyFZIlu+IaFIgdVRA?= =?us-ascii?Q?XmajeVCpEGbQ8UeoNQhVY5xVAPP0uGjayHAt4r4OUsc/525yr+n/pGvnJ4bH?= =?us-ascii?Q?DBcSL6kDs1tc1I2bbw0DbqO5pmqz/nGbYt9dxOCEL8sooOKcORmxpHX4J02f?= =?us-ascii?Q?R/3/6EfvZHlFbk0uXpxUiybHqV0oepmSgCA5Ir3GLJW85+FLDzhc4SIzehfb?= =?us-ascii?Q?4O83Uu84bag91/M1wdt65+5k9xnhYYB+RvSVhGQCLGQwyb6rxqVSXTQ60v1B?= =?us-ascii?Q?8PV1JF/AO7eARYXRhk9cLuPDXsKtWV7aoumd1Bz498W2AP7q8HEDog8HUp3x?= =?us-ascii?Q?TpgQUS5oEX8KSW/XlrsN8S3wp2ZqOhK4SinrC8RzlTxezO348SMe4erS4Cds?= =?us-ascii?Q?FQ75JyluQq2fT+QINEchdPg+4NJL0cOyYcScyagOOupTO5j6aLfjglMk8vyb?= =?us-ascii?Q?/Fu6vaFo4+dilUajZgiiIsVywAYli+TRkMnMnNDvhyd3riz5wqEsxrr/9yLF?= =?us-ascii?Q?5zAUQFBC5S9dRMqiL+oErUnJnTR1/qiobMyvJNL5/GL0DRPW0pdj67X+s2hZ?= =?us-ascii?Q?zUsde1QwbUKKB33eJx+jt1zpw/3NkYLjo7UC7Mp1M80mtgADC2YDQUXv4Dht?= =?us-ascii?Q?bZHiqMnFoH3MnSWbhiPCicelVjikJ2CCbfnyoiQZTxwN4C+5N9sJaOM6KQ5R?= =?us-ascii?Q?/cXGRZ9J6lwEKSL9hSmIfMYeEvjbJzWuGR29NW4M0zE3UHm7q/OomKIfyx9n?= =?us-ascii?Q?ElMGoO7ZN2hsepBAgi9yb8+sxwceapqXvSTFTuB3TdLr5vmLLL2/hACLOiCA?= =?us-ascii?Q?bMYcOECbilNzOzX+anqJZZp7iVAonJP1cKZ2EVyr5FKO9hJqcuCiSAC9CePZ?= =?us-ascii?Q?notTkKltDNklhIZvVzXUJolx2E4g5Xw43ylsiuR/YSrGlEv9N4PHSsfDsfsN?= =?us-ascii?Q?fXbF47lE/+udXVnRYQHQNufPmd8ketcYUw7IwEQ1CF6KRUaKAuagFaUDUn76?= =?us-ascii?Q?JyCzqj7Jdw=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2504; 6:8cdq0Ho4y5P8k2c9FgcGt17XxzA9QxCN9BrFiqzwJLwiCugrWJd8S72XAqfG6A9eJ8F6+WOPGzzRLyvS+c2Kac/Wk1OFFzqFacv4UXNjI9tBoXbIMZAfmmYW4eceC7YRsSf9y9GqWZgemJS7T4PUPAyQa/b6lPWVnYorhu/f17Zc3hQDtWJXCjjKVWMsujoBf5QEQkLjDt1SXSIyZFkQ7ZVog2GvqMTcpQl1i/yv/L8c0/rzx+JHF1E7RhJubb6G5AqPnay4PKn/R6BlaNrEqKOZDiIL1NyQvIuhzR6VOWI=; 5:r0ofgwZOl8g6IbYOQMCZVoKMkXWsfA/xd25utUuGOYtAoAh+JUVxXzrJb+wXo9x8G2f6RkW8HsSLim9DFNXCzk/naE8vVHq4TMXVdHvMB4n/en26dfY/XH6y26fik5MQi/97e4ENQGK2Rv439X2sSji3lSw00htk6Z2yWk2NIss=; 24:X8H9N1Hyc/6b/TPvV0HXN1mPZC0Utw8Z4OpWtPXOk4l8+ueiSfTICoK9P9kaaFdJy8AeS2DjCiqUctO2QhtyU+gc6I/OrMKHZqkwJtDCPdA=; 7:e2QSQTsv4l2e8Nmz9gDG48sUHAC9kifQBC1Rn3wFzvecAN8aM7OzlCsFI9l9AtKYr0rJ/kw3kQFY/WMOW1ayDPG/bbnKShI1BLUNdfYiz1xnfKevz5Jes7bLZlp4DfRq6C+7muM6guMyqMAmW1KuaZRygFd6HgHvfsN1cSsmGXaK6I/Ze/xwVLcW6Aq0l4jdsOO5w1ZF9TuV94ZfQHWduRyiBBp0z2wC6on/BMFTOvuNcy8UP+hbDwPyZvhwbbMO SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2016 03:25:01.3724 (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.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB2504 X-Mailman-Approved-At: Fri, 15 Jul 2016 05:22:02 +0000 Cc: Peter Chen , Alexey Brodkin , 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: Alexey Brodkin Signed-off-by: Peter Chen --- drivers/gpu/drm/arc/arcpgu_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/arc/arcpgu_drv.c b/drivers/gpu/drm/arc/arcpgu_drv.c index ccbdadb..0226ec0 100644 --- a/drivers/gpu/drm/arc/arcpgu_drv.c +++ b/drivers/gpu/drm/arc/arcpgu_drv.c @@ -127,6 +127,7 @@ static int arcpgu_load(struct drm_device *drm) encoder_node = of_parse_phandle(drm->dev->of_node, "encoder-slave", 0); if (encoder_node) { ret = arcpgu_drm_hdmi_init(drm, encoder_node); + of_node_put(encoder_node); if (ret < 0) return ret; } else {