From patchwork Fri Jul 15 03:17:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9231171 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 610EB60574 for ; Fri, 15 Jul 2016 05:22:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50F9527FBE for ; Fri, 15 Jul 2016 05:22:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4555928319; Fri, 15 Jul 2016 05:22:10 +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 073D327FBE for ; Fri, 15 Jul 2016 05:22:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ACB456E1ED; Fri, 15 Jul 2016 05:22:03 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0044.outbound.protection.outlook.com [104.47.34.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id DF0BC6E044 for ; Fri, 15 Jul 2016 03:24:56 +0000 (UTC) Received: from BY2PR03CA054.namprd03.prod.outlook.com (10.141.249.27) by SN2PR03MB2415.namprd03.prod.outlook.com (10.166.211.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16; Fri, 15 Jul 2016 03:24:55 +0000 Received: from BN1AFFO11FD018.protection.gbl (2a01:111:f400:7c10::137) by BY2PR03CA054.outlook.office365.com (2a01:111:e400:2c5d::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.534.14 via Frontend Transport; Fri, 15 Jul 2016 03:24:55 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; ti.com; dkim=none (message not signed) header.d=none;ti.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 BN1AFFO11FD018.mail.protection.outlook.com (10.58.52.78) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Fri, 15 Jul 2016 03:24:54 +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 u6F3Om1E008057; Thu, 14 Jul 2016 20:24:51 -0700 From: Peter Chen To: , Subject: [RESEND Patch 1/4] gpu: drm: omapdrm: connector-dvi: add missing of_node_put after calling of_parse_phandle Date: Fri, 15 Jul 2016 11:17:02 +0800 Message-ID: <1468552625-23546-2-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: 131130266945631256; (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)(199003)(189002)(68736007)(50466002)(92566002)(586003)(47776003)(8936002)(77096005)(87936001)(11100500001)(86362001)(229853001)(6806005)(8676002)(305945005)(5001770100001)(104016004)(33646002)(85426001)(5003940100001)(81166006)(81156014)(8666005)(2906002)(356003)(4326007)(105606002)(50986999)(36756003)(2950100001)(76176999)(19580405001)(19580395003)(50226002)(48376002)(7846002)(106466001)(97736004)(189998001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2415; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD018; 1:Giu3Zbnu4G+mAtg0ZQZJg+cX//a24Rse0cEoIqoDjSIj1mA4R2Q6pnBtvNWnbn9VNZ95utX6iFaQ25ESDig/tJ3GjNwrTYxhywCLEAioHEwjj/esPSLa2kYRBk4lb/wdwlMQgGnbG/ZTJVZTDIbBqShrpyJDQU7NEtMOPIN28oUZKGvk+Brqn8stts3gmP5PfmLliW80WUsEUep9nSUW+giHC70LJjm+SjYu7ioAwUaosQZ7tmD6fuvvdkpVbGK+MJjvx7LAMXLvk2yC8sC+xXggftUdReqTxsuuR3DyB6it7GJmAyj5OXxbnmmo3P13PfDg/qV106ftrDdd4BC5Z7ci7tOr5q1BVirglnPw3vmHJKEB91Ocl1xCYZk0wWxED4KRLLuqebSsK+IcsCyX441146+6UU7wUGAL+Fd3RhtI/ZnYoTqqouJBU952sKDvyQTwRvKjSRM1MO2Ycqh/1+PpurTEtKXsEdwIlv/JHY+PSAQ55KocEPxCWSgYo/2H45sC4Lb5BtLRG9vb3v1onQcao7dGhOMP3gTEA/MmESwZYF26QlQ3+Z2SgUTEjwgSBJAk5rzVveUYJ5RpFaTNU2CQap12uFpBGnZcZQq4+T1zHVIhjxKv1x8ULn6/MDzn MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 75c2615e-253c-42c8-b418-08d3ac5f970f X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KB4oEZg3p3TJ7T6IYRbppouDzdrvpWanwd4KEYwcfcCqEoXYWelO1KXUMeIvR4ilPXLoGHU03JuJhlyZntPqp0J/uN1pNyF59Hf8wixDZF8Lj1PAZ3xhFFKZX106Vee1s+8gFWzRig==; 4:PD05fSBOhtBjZOcAk3a4aPPogeleAqUITieX5cAZTAPkHjDuLoJNQfecuwcpOkQP8bFfzJIGPTWsc4Hw6kObu1OmzZdFqpQzJEXdvIkwwqHGZUKsulcseVBIIcNbnHgJnwfzMno10XclF/wUg0pL/lMj09GoYA9XeesuzhaXhdE17+CewMqRoO2XRl3Egi1K/AzGRs3CAR467Fjlpcb1NNCY1SpJrbBjN5QdT6djvtcMPiozKmmUF1SUwYG8dGbU5h0sRMb7G9k573b83paa36Y9vRL7Mlp41R+IXYHaeqUgahOBgEf8aB2JEhTozugNphjDsFZQlGiBLGo//CtTVS0PRprxIkDKFXxyVK6kSLNfsxZTIFrCJ6sPisUTdDBAS5wTSWzxwnzLDPSxpV/tdyRzv6uzgL7prG8apzafQRGwJlUceV6Aurpi1GJPqxBBdRoTywJbGJYMpYKDv66LQ/F6gyk2IKd9hUL5HSxZwmVIwvVMplrHWtrdDol9QJlWa98gYaRSKwEreuVL5Zk2ZhMYk/7Kh4PKQcqqRuWsxCybnteSx6mzJAcVQiYccjSs X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(31051911155226)(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(8121501046)(5005006)(13017025)(13015025)(13018025)(13024025)(10201501046)(3002001)(6055026); SRVR:SN2PR03MB2415; BCL:0; PCL:0; RULEID:(400006); SRVR:SN2PR03MB2415; X-Forefront-PRVS: 00046D390F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB2415; 23:79B2bxRnHguhrGGjGUcBUVvrxuirhIrLUCqWIi7Ja?= =?us-ascii?Q?/pZsbystRaLElV9+iWW42Snf9mMt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XBo6MAOND6RXws1/IQdPld92O9zzS9Ko5C0dSvpveAXGMfqZz5moxLBm SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2016 03:24:54.3915 (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: SN2PR03MB2415 X-Mailman-Approved-At: Fri, 15 Jul 2016 05:22:02 +0000 Cc: Peter Chen , Tomi Valkeinen , 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: Tomi Valkeinen Signed-off-by: Peter Chen --- drivers/gpu/drm/omapdrm/displays/connector-dvi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/omapdrm/displays/connector-dvi.c b/drivers/gpu/drm/omapdrm/displays/connector-dvi.c index 75f7827..684b7ae 100644 --- a/drivers/gpu/drm/omapdrm/displays/connector-dvi.c +++ b/drivers/gpu/drm/omapdrm/displays/connector-dvi.c @@ -255,6 +255,7 @@ static int dvic_probe_of(struct platform_device *pdev) adapter_node = of_parse_phandle(node, "ddc-i2c-bus", 0); if (adapter_node) { adapter = of_get_i2c_adapter_by_node(adapter_node); + of_node_put(adapter_node); if (adapter == NULL) { dev_err(&pdev->dev, "failed to parse ddc-i2c-bus\n"); omap_dss_put_device(ddata->in);