From patchwork Fri Jul 15 09:32: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: 9231595 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 8E1CF6075D for ; Fri, 15 Jul 2016 10:14:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E53427FB7 for ; Fri, 15 Jul 2016 10:14:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7300928324; Fri, 15 Jul 2016 10:14: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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 504FD27FB7 for ; Fri, 15 Jul 2016 10:13:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752470AbcGOKN6 (ORCPT ); Fri, 15 Jul 2016 06:13:58 -0400 Received: from mail-by2nam01on0052.outbound.protection.outlook.com ([104.47.34.52]:1060 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751811AbcGOKN5 (ORCPT ); Fri, 15 Jul 2016 06:13:57 -0400 X-Greylist: delayed 1131 seconds by postgrey-1.27 at vger.kernel.org; Fri, 15 Jul 2016 06:13:56 EDT Received: from DM2PR03CA0006.namprd03.prod.outlook.com (10.141.96.16) by DM5PR03MB2505.namprd03.prod.outlook.com (10.168.233.139) 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 09:39:52 +0000 Received: from BN1BFFO11OLC004.protection.gbl (2a01:111:f400:7c10::1:179) by DM2PR03CA0006.outlook.office365.com (2a01:111:e400:2428::16) 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 09:39:52 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; savoirfairelinux.com; dkim=none (message not signed) header.d=none;savoirfairelinux.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 BN1BFFO11OLC004.mail.protection.outlook.com (10.58.145.15) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Fri, 15 Jul 2016 09:39:52 +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 u6F9dmpi027506; Fri, 15 Jul 2016 02:39:49 -0700 From: Peter Chen To: CC: Peter Chen , , "Rob Herring" , Damien Riegel Subject: [PATCH 1/1] input: touchscreen: ts4800-ts: add missing of_node_put after calling of_parse_phandle Date: Fri, 15 Jul 2016 17:32:05 +0800 Message-ID: <1468575125-24920-1-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131130491922704663; (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)(68736007)(36756003)(8936002)(105606002)(97736004)(2906002)(92566002)(4326007)(47776003)(5003940100001)(2351001)(81156014)(11100500001)(81166006)(7846002)(6806005)(104016004)(87936001)(8676002)(586003)(229853001)(50986999)(356003)(110136002)(50466002)(77096005)(86362001)(189998001)(85426001)(305945005)(19580405001)(48376002)(8666005)(19580395003)(33646002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2505; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC004; 1:UHBECUTj3E/wHHDTQKxtOwF4Bp9k9mgG3XAIAqDmTrbiiiJdDQSwkvCecfyBQHOohaKtyrCFCKR8UJPLDGqP5GZE6SLdcfZIuDQ9EJMdjwr06b3tITNElrgld8nGVPr4MMFxwvXbAzbkyC8jq+8J9K+dCgAa1PKojj8kkKP225Hrngqbne3yj3slu9jzVrJUl7qCuZa49O6zDKPsN+/1gJPHe6heJ0RtzL4n90651uwN+WgKH9G5jV/zTqWtJI4xbmETCKeN/KnEWhz+JtHEpwzdR/rZIT9jC1p4do/yQSByTaihuBBaqdArNkqXlLMTjpaynvDZ2n9Acj1IjWDU/1Ijy7rKLlnZijJQRaMJZh8KBwYFKb1306z9927kTjqBb8r1xT5Egl/1YrwSHXwGoTdVP5YHC1rbVSZ3+v0NPQGPMtchh88L5onvfseq8Wh8jRoA06vlptXmJKJ2wREZ9H0JZh1stC6Rw5y4xKe1jR3tXfg/u3uz0WKN/99GUpMf6YZsScY22nMMpdHd9fdECpX2X64WugCzac9PkG9tWEZImx+56lMjHapHyzQUDtNXnhwBhZ1HHp5/mTI00bXvoC1x/YsnRv8cLj+rTeoE+5L1dwU9FCPuzy8D6+7i/hch MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: ab24e273-c41e-40e9-07b8-08d3ac93f8bb X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2505; 2:hgAn+sFchTUjRZkSBwbfVjoDtGrCulj8+HW1jb2rmPk6Ejse8+XTzLnjb1PWz+HlbH9EsA8oKJi7wMWXYPcolgIpZlCyw9p5wzBR9yFcut8hTDhFPMV6qCSLHDc1mAcevdwWx26W3qm9YVA+JWJLeEdgywyff2PBDrlvEEYX+tfYizSU4ApDQKaQetlErmsr; 3:4ZLBaZq2GL4qu3m52THh7Ks0cTiPKcSUG7/gt2Ft2YGuV/1gb683TOqJQP0wYzmKqhI3uzCPsAsL3b2tHTLNVVZdcdDCltgl33x+vkM7ptcInAd9yyYYaP1F0ZGrimHdTl6aQwyyJs9RX/iE6g+fZB9HTUQT6BLXofTSm0W5vL1/qHACktazp9lrKGAd6YzRCwBvYpwJ8+2nE55PtYpiPacIOvxjJcXEhuOQTSYNj/E=; 25:TY/X9JdUNy5gIi9zAyHn/lV8ZJBe9s+Iv5hTCICORF8wZ7Yj75MZAJ/rR/4YWc16+q7r8L+3KikZ1l64MAoUdAYL9FAvQVzktvEZ8jO0MgJKqZ638vPmVFjTHVG8V2wVRgg1lehPdgVpFavxAt4+1/cAiP0O0iXRwyPJGe/TUiy30Xsz4UA0UId0t4OrE/H79NR+DJ+1zice+nN5nqGGOpmt1/+BC1Kd028VuX/LyAwU03z7SQ4yRuF6L1CI/Kd409qlxo+Cu3LWl0lb+wMmFkGkwjdtKHmoyK+Qpz9UV+ReLEWvYoqrVy/YyNGE8L9PMt/cIxfD4x6R20AL7m5XfZGJCjhC+j3eEq0kOW11/i/jse56hY7MLLve8f/pIRnsYJq7ILqzSZ+VorEcP3GrFOhoiCKa40id5T5FkVj+jjA= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM5PR03MB2505; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(8121501046)(5005006)(13018025)(13015025)(13017025)(13024025)(3002001)(10201501046)(6055026); SRVR:DM5PR03MB2505; BCL:0; PCL:0; RULEID:(400006); SRVR:DM5PR03MB2505; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2505; 4:SeKt/CBpnSgZjGqY9iu9LSrYfTIGhKVDgfJLM3S5yCk3Co9Rii8n4Y0xgikt7eJdAxQ+zOqpJrBjtRzyy+BVFBWn/hVxIHmvgjPyxAH1KPkGtyWWfbanXVrjYbMRjKWUUT/iKyA3+k9TjZA7K4O8kN8dSwBB7FmhQU8gEVd2J3/ciA0C+sjq2BKQxaYES7UXasdwPRuo6wqO9mEqeoQPnwuN58V5bxXoPsiCjTSVtnu7lNnniKmnyAQ+LqBwDaMGhCFlFZzqYLuQJXoI8Vdb248aTBFYZPrj4rjN7Y8KJRLaiJh0RQu3Cbh+xGQB6hSnd+YvpQ33ulZjaKLP/INatRZSIo+2Cqx29yRPEdkzxUGCn6AEkZv/MzJQ0f4dwMfcDUpk7KDanE8VAoDvNXtC/l1sRVccRDpeTIEEfNfiCJ6rUMuGiwJC4oWQl7FXdOuJL4nthkZKM2+KeDtR4i5Mooy5eqh1m4cUsQd2jEXML77QjS/xKzakDaMDiRtxJkg2m+xE3VxEYtQmHRtI3bnTqv59JeZWmOLkk8ckL9lubG3Y6k69kBilClqQVEF2QvoH X-Forefront-PRVS: 00046D390F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2505; 23:i6M/LW9kRj2FEsUbyQRk9klZdTJlcpysGEfxHEvyo?= =?us-ascii?Q?UXmAXceTgbFmXgUmeovNSmqhPrjwWBK2RnvpBo4mWrbuD1sJSJLA0C9zq7mW?= =?us-ascii?Q?LtNyLMBmP6dSEbVO+Jq3JCmJ42nUqRRXnabil6p+qcYSbAx9KF7bzE1QZIyN?= =?us-ascii?Q?jpMyrh3rDAaiY4PsybvqJDiXYGAVkS2R7kr9Dv7HKav99Wennya1GcGbGAiT?= =?us-ascii?Q?rBZHxm3bX2scQi6Qc6X9oZWJ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change-Diagnostics: 1; DM5PR03MB2505; 6:QqHX/gWrd47+Zk5GR8MUAHIJ3915xalz8YwiP3W5yKHHowjVMjGbp1cRojBT4IHi5el6PIjkX2Y2bkhsibK8VqcT5qdA0qL/MtKi5N5taVsmbYq4lxY4/J5dXYwIzswwTaRaKg/g4VNCCaPVMHo3eBN9fz8oOQjIB6nozY7ipD8lDxqRsD8Hsvg30Ofg3qasT6Rc42n3T8tIi3Y+LZg/4xQgB0BfKcyj/mbwTzG/Gqt9cuFJkce1g5xYFChuOh4Xqzh7VR10EP7X3mSmryTy3RjK94TnOFCr6rdt4kX4Hpc=; 5:qEQdR5jPPddEUdtx6HTRfkJH6TIipF6Z3GlzKQ5Ds7EfaQYSGotInQpW/U3Fdybkts9gEJC9Rr3RI4tqzWqqjnuWESI/e+cn+R5gCrDux0jPbaTeCjnwKLWfAdUg1a1VnOu52LgfImtFORrRGR651weXB5VmowIHQMjl3ctc2hU=; 24:3PqjoYvCKo148oLNe6lgtwz1C4+4pyHL/vxHdK/ZXqInhq/+aTlexMHU//HorUUUnSNxGmud+YStOe67NzRN6QNePK+OXBgqlORjfR5b37A=; 7:eN5Tbj/7ItRTwGp3ZQyzpvqjbZSsZ3iN4XF4ySZ6UW6VXU5uuGcklHLsj2sGewL2LdipxkkXao1nhB44Z7OcgdIK0hqiSXS5xaMo9DgVQvPI1S8G93047MVY0p/lfmArhoXrB1is9UOHjMjMD5o9T6hLrVZY6SH4JRRaNnabuY5Ibq2WxA4HsHUJMTxQED0BpXnkdPNvqfEr1tSMpEEuQH/x+ZPsZSL1fVNbu2jBrgCEjD4lu7PrzNzsW85ualPn SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2016 09:39:52.0364 (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: DM5PR03MB2505 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 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: linux-input@vger.kernel.org Cc: Rob Herring Cc: Damien Riegel Cc: Dmitry Torokhov Signed-off-by: Peter Chen --- drivers/input/touchscreen/ts4800-ts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/ts4800-ts.c b/drivers/input/touchscreen/ts4800-ts.c index 3c3dd78..8f27ad8 100644 --- a/drivers/input/touchscreen/ts4800-ts.c +++ b/drivers/input/touchscreen/ts4800-ts.c @@ -135,6 +135,7 @@ static int ts4800_parse_dt(struct platform_device *pdev, ts->bit = BIT(bit); ts->regmap = syscon_node_to_regmap(syscon_np); + of_node_put(syscon_np); if (IS_ERR(ts->regmap)) { dev_err(dev, "cannot get parent's regmap\n"); return PTR_ERR(ts->regmap);