From patchwork Tue Jul 5 02:11:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9213453 X-Patchwork-Delegate: agross@codeaurora.org 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 9EC3760467 for ; Tue, 5 Jul 2016 02:18:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8EFDC2881B for ; Tue, 5 Jul 2016 02:18:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 838302881D; Tue, 5 Jul 2016 02:18:22 +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 ED4202881B for ; Tue, 5 Jul 2016 02:18:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753568AbcGECSU (ORCPT ); Mon, 4 Jul 2016 22:18:20 -0400 Received: from mail-cys01nam02on0077.outbound.protection.outlook.com ([104.47.37.77]:63611 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752669AbcGECST (ORCPT ); Mon, 4 Jul 2016 22:18:19 -0400 X-Greylist: delayed 61532 seconds by postgrey-1.27 at vger.kernel.org; Mon, 04 Jul 2016 22:18:19 EDT Received: from BY2PR03CA056.namprd03.prod.outlook.com (10.141.249.29) by BN1PR03MB249.namprd03.prod.outlook.com (10.255.200.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16; Tue, 5 Jul 2016 02:18:16 +0000 Received: from BY2FFO11FD045.protection.gbl (2a01:111:f400:7c0c::125) by BY2PR03CA056.outlook.office365.com (2a01:111:e400:2c5d::29) 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; Tue, 5 Jul 2016 02:18:17 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.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 BY2FFO11FD045.mail.protection.outlook.com (10.1.15.177) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Tue, 5 Jul 2016 02:18:16 +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 u652IESO004382; Mon, 4 Jul 2016 19:18:15 -0700 From: Peter Chen To: CC: Peter Chen , , Subject: [PATCH 1/2] hwspinlock: qcom_hwspinlock: add missing of_node_put after calling of_parse_phandle Date: Tue, 5 Jul 2016 10:11:03 +0800 Message-ID: <1467684664-21155-1-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131121586970630755; (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)(92566002)(50986999)(36756003)(85426001)(356003)(81166006)(305945005)(4326007)(2906002)(105606002)(8666005)(7846002)(50466002)(5003940100001)(2351001)(229853001)(69596002)(19580395003)(48376002)(33646002)(86362001)(110136002)(97736004)(87936001)(77096005)(8936002)(189998001)(50226002)(6806005)(586003)(8676002)(68736007)(47776003)(19580405001)(81156014)(104016004)(106466001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR03MB249; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD045; 1:J79jn3V7pB4JFkegLhth4UtOTDySBVRPMBNqSRnd6e67ku0u4u/+lVigIuCQAMDWSB1d2HB2gZZTo0lNyM73HEfn/BTbeKko2XXGU51qksq5Q8t1htsb18gPOf5dMxgxYoezRHfl6Po0FBXwSP5G0F0BidioUUrgWUQeRDmW6ig66QqOvDNKJJifYB4iFqoETHrbprVw9gCaRivAvuhue6VQVPtQJ5ZsL/Ry5yVY3WagwxcHSRGvSfqBKAQqh9e0DlkOIX86DUgNbsxLhbQbxPDLIfdxdy+feFlnp7okiZgmpAs+czXfHysmgwH/wAC/n55Ba6gxMXOVKmsaYJ6uORDmW6CXNe0c/Iel6Uw983fjRS2wEsUcZglN6hqFQEElR2VuydE7h5ey+Y3tt2fv5QH6cTmXmBWE4I45tlqCLsSWn7uEjvnwT364J1zv1yXjLrqSXVZEnh6MDVe8NvZ38ALdpD0dPbzczQRGp0oeWrrqe/PplNiML0S3IBuPP+3KRJNsecX6I64GLoart3qrzbodCQXbT3Hj9/0MDw6+ZsDS0LU6U7Rwwf6EfQMgQqPT992M4vtmkgdqJB6J8XkrIwKXBdZZVSd/UYb6ktzyOYpkJtH1jjsVHUYXESNh8qa7 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: ce67cde8-c644-47b5-b904-08d3a47aa039 X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB249; 2:6sNbw9KqfQG/iupuU3c29I9XNYERgFJ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4qScpjDM+XWeEZxzZLa7C/hGguE9ihpj/7Xja4klFiHZNjYKfLNuoNX9PJrg==; 4:/wMmuQQL7RPMkOZvvtcWy+mxvoCcQfBiISRRi/oIe25+tqnF8LnpDLGCJxBx23phoZXPHSCAey2VIgDyBvfCfpJs7qomuzHz0biiWga1mne/ojys1kBxXbZKgNS6nPytV7twRA2XRz1Y3lkjziSxtT1gpbcj6JPbAU3dCkEwzWu/TEroqgtZ9asI02z3E5o7Cw1UH140WBBQZ8BUyTKnMCcjUr5gAKoPjYGw8vfsAiBwsyV94Trp0X73Yk5W3cIPXea/Ff/1LEKB86V50seEuESlSEbA3R7Dfaa7jwoHDCIV1mjgK7ybpfGMrGCRXB1WBwgEyNfCmGc1baYu/ZZYF5w2btw9cdwHwwtwyDtgmbtj8oOFvIFuum8WU1ysA6GtUZv9VqmaPki1euCxK7QbMit8Vf43jSsCIokGO76VpT8B8RwI3RYl6KDcE4PeJkMskwX3VdcnoKsVfU3n9YmLbTqfRhEuUd7ix0kWJsMQSzKMQAqJAZYphhzc/lEmO1IoyzLFuTwpT3Y6M49lguuKvOObHDUwCtYNfCqlWxjN9KmQzyCZiQ648hsX7hmVjua+C8CYY09GDelH1GdphITuPQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(185117386973197)(258649278758335); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(5005006)(8121501046)(13023025)(13018025)(13017025)(13024025)(10201501046)(3002001)(6055026); SRVR:BN1PR03MB249; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR03MB249; X-Forefront-PRVS: 0994F5E0C5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR03MB249; 23:JE8aupfMSZKRZAgVjtW0mTqF4gAlpC9AHDxLZw5h13?= =?us-ascii?Q?zOnl/4y1C+/TrAlTxZCVNNGH2oJQ+doFs6BFgaPYNukIlyYM5HIyEBE2P28z?= =?us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SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2016 02:18:16.9382 (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: BN1PR03MB249 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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-arm-kernel@lists.infradead.org Cc: linux-arm-msm@vger.kernel.org Signed-off-by: Peter Chen --- drivers/hwspinlock/qcom_hwspinlock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwspinlock/qcom_hwspinlock.c b/drivers/hwspinlock/qcom_hwspinlock.c index c752447..fa6880b 100644 --- a/drivers/hwspinlock/qcom_hwspinlock.c +++ b/drivers/hwspinlock/qcom_hwspinlock.c @@ -98,6 +98,7 @@ static int qcom_hwspinlock_probe(struct platform_device *pdev) } regmap = syscon_node_to_regmap(syscon); + of_node_put(syscon); if (IS_ERR(regmap)) return PTR_ERR(regmap);