From patchwork Fri Jul 1 09:41:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 9209695 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 6BFD26075F for ; Fri, 1 Jul 2016 10:24:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D93928462 for ; Fri, 1 Jul 2016 10:24:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5234828699; Fri, 1 Jul 2016 10:24:29 +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 AB9AC28462 for ; Fri, 1 Jul 2016 10:24:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752746AbcGAKYL (ORCPT ); Fri, 1 Jul 2016 06:24:11 -0400 Received: from mail-by2nam01on0080.outbound.protection.outlook.com ([104.47.34.80]:6473 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751523AbcGAKYJ (ORCPT ); Fri, 1 Jul 2016 06:24:09 -0400 X-Greylist: delayed 1246 seconds by postgrey-1.27 at vger.kernel.org; Fri, 01 Jul 2016 06:24:08 EDT Received: from BN3PR0301CA0032.namprd03.prod.outlook.com (10.160.180.170) by BY2PR03MB1928.namprd03.prod.outlook.com (10.164.114.32) with Microsoft SMTP Server (TLS) id 15.1.447.15; Fri, 1 Jul 2016 09:49:08 +0000 Received: from BY2FFO11FD055.protection.gbl (2a01:111:f400:7c0c::106) by BN3PR0301CA0032.outlook.office365.com (2a01:111:e400:4000::42) 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, 1 Jul 2016 09:49:08 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; gmail.com; dkim=none (message not signed) header.d=none; gmail.com; 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 BY2FFO11FD055.mail.protection.outlook.com (10.1.15.192) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Fri, 1 Jul 2016 09:49:07 +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 u619mwoR013455; Fri, 1 Jul 2016 02:49:04 -0700 From: Peter Chen To: , , , , CC: Peter Chen , Simon Horman , Magnus Damm Subject: [PATCH 2/7] arm: mach-shmobile: pm-rmobile: add missing of_node_put after calling of_parse_phandle Date: Fri, 1 Jul 2016 17:41:56 +0800 Message-ID: <1467366121-14120-3-git-send-email-peter.chen@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467366121-14120-1-git-send-email-peter.chen@nxp.com> References: <1467366121-14120-1-git-send-email-peter.chen@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131118401478538860; (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)(104016004)(11100500001)(68736007)(86362001)(575784001)(5001770100001)(92566002)(36756003)(97736004)(2950100001)(2201001)(85426001)(5003940100001)(77096005)(189998001)(48376002)(19580395003)(6806005)(50986999)(76176999)(19580405001)(8676002)(50466002)(7846002)(106466001)(4326007)(33646002)(81156014)(81166006)(586003)(229853001)(47776003)(2906002)(356003)(305945005)(105606002)(8666005)(87936001)(50226002)(69596002)(8936002)(7059030)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB1928; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD055; 1:Sd3eEJ5m1/qB/wHin9mZNlgzsyWfiVt1i8oDSO0wxcoK+15FEfhKtF9j4Bam3ZXCSG9yagSoRKbsaB1vnno2qMXq83j5uKGaX0xWi60slqp2rJFnkf0va/aM+ro18QeOhQ2myD5/uGnHQ34le5nYSQTEgD5pjcB+Lw3Et2vdsAbNpZLBGiaC1NMy13+qOO6qUibNASlKyOnhGv3h7IycC/0aWp8q3lk0PXr6MYVPN8zOpDWlAcOPKqDx8WsHJqVOpXyZES72E5sd3fDkOvb2F7OqiR4w+0J6Q1bS7vgvFG6urBqGZn4RdcIGAxWi61uug8WwCv/mA0bEXGhheJ0ADj1/BWDlHsypigNxE0zoAXzW/FHHxlvOoCLsdeSHaYAIFVcYiPYrcaOsdgajuj3zoCCD8CqPoCHojaecPPBOdUm18acmnBJk1qwdQOgzwAM4rGmzmn4d++QnjzG+bw27k3qDyA42MdwinHmo4oM621JuTALXvDhTx6p9oA8MyxyjBo9ZFQzE72RVj3lYQ3cuSHK1g9OdQfmGF0cWOwSAOD7tWdPgelgkt53EJvrvpX8zM/91iM9K+afjnW3mzur+xZF1HrBfTsJdGrSP3F4Ifw/OhiWsenG0EotyKvZLprGu MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 19e5b91b-1676-4bc6-366c-08d3a194f21c X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB1928; 2:AwFVGMlHWc7uEDmRFq5OzCSVTP9CmdCuf+itWpgm19O/v3f6PVzJxgnJZHHn4Va2k9H1IitV1IjOdzVuOi2t1CALtEEuPeeNjwFoRjq//9yWiC4AA3JDb7+7cpZdzpQFkJaWBxJd9kcapDlsZesyE0+uhOZCk/VXeiRVJqwpUiHbO6QxK1Xv523waTEf2+RK; 3:/B3bYyDujJg8dNmV+EJR5lp2ABTbynD0Rij00sGRbhuE0udUUeFie60AkSwoMzwTQ4Q2lJIARYmd1Oj+aYG102HxFzRAad6bXqlK1Baauu8/tA5HptR7NAI2IImHTrzBb7gfRf/6CRZowYFgwXpSAuRHYWMV9eLMTMMsWEGobvYktVHB8kB5tOacVA3YUIyTqaHUhuj73owV/bImrKVtdUmbqU3gcVSFQ5rZ4c7oUEU=; 25:KZaX8Csg8tcfwtw4Ct0l0ujBVzttKoOLhPPnZG2fJtlHUeKOXvKj3lyFdJgxyzd+LPVUjSwuIYpttSpPbOWP2XFAPeGPiNF5NjtCG/l6/d+93o8p9RYytmcBhbSQSCVOJBvuHwcwU5y3u2idHMtct+Q0AeCJ+c2AyvXLXtte8F2mBnDXP/Iax1D61WVTbve+2Bh12AuV03+xGzMNjZOTwyqQ5Qm8xdhpqDuG3SxcQugbCg0IU9dCGQeeT4NkRmIu X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB1928; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13023025)(13017025)(13015025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:BY2PR03MB1928; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB1928; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB1928; 4:4lfvBsMI8EoB7OlutKEx5cRHl/0zsVe02PwQvDYKXXr8Dlz5ZqoZhG6hUcTd+oXV0zapXBO4gC0AF0WJfoeqjvkSysvq+lxWsW8r9HHP6VztxqU48wl3p7SMMf87Z77l510MYpRx2ehC0g9NWjQCPRqwNrYm+kCJqzgHce4DzlYAJqGVhi5A+XD5Q7Kta9b7AOJFFZit247i7q+9HeBGXDFPKgY/Fne8ekO8JU8S/B0e0ulWAqJ4hFjsErWyskF/nE6sfTKRoV/V3iU9JTPj32DzquzGGEtct3kLsYMk2SlKk3zGVAhVEzdMNNRzI/cocT135KnO/hiEjwbiGyyEDLIGWaTA9sgHpXglkqm8a3rzMwZ0I8tIln42S+IFTF4298/1H8b5tT6W1QmIOSN//edMmtVjC9o3vbz3JnyZfrWpMz0y0k6elXDJ7f2Lol33mVYpUAYtL9i0663dPhQ6Nd4aDbkNAYf/l0NfybOoGc7n77Bnb9BC2UPjRmGgUlcOyaX5SgmERONNtjk7X+FYew== X-Forefront-PRVS: 0990C54589 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB1928; 23:RuOtLiAnrmEZVg1HzYJ2VlC2I4pM6GQ0SopQ7zq6Z?= =?us-ascii?Q?o+u0TBa/DvqKQwUNO8353WnjED/aJXU1I6STAmobw1/E65fn16jzYJB8ZupA?= =?us-ascii?Q?cvfvdLXd9Qbd4CK3RJa5UXK1vxqENayl+IddOBK6Q4dlllklUqltCATvKgPX?= =?us-ascii?Q?HRwZBZqynXLrYYK+ilEu32qi0CAjoL7v6yNaJqYVG/luTfpYXQLS2b7Oo8MX?= =?us-ascii?Q?bUT7vuvWcYSu+/SMClantor+32qfLz67gXtU49OuIa2RaLNJN284GR2mQJ1W?= =?us-ascii?Q?us9TzPkgnjYl11x6lp1TuEGxjM5pn/0B9mQIkI88xAsKi/y//+xKdbs4n+Ca?= =?us-ascii?Q?Zgsc0m0djQorad+Ft9UrAmADBZIX1b0QEKuaQgvw235SoAfVd0JwTO8KrJ1W?= =?us-ascii?Q?PY4SC7s3b0lym+3Y5bLGAGZFr28Ma1fQZa6zFLLxEiUdsodgTew/adw+UnyI?= =?us-ascii?Q?8ur4S0J0sL0C852Uhm2mMwKTL0/fU/n0bcKrk492XJcbs2pATo0yacwA9lWV?= =?us-ascii?Q?dEwhim3oy+sEf5Nus1S0a/XsmQM0WzFXLydsqpfO4tAhvuIhXxYy867l1xPk?= =?us-ascii?Q?/3pNfibysCybzrT/LXZZqheOrxn0a1virfUiuH7Q3GKaPZzfgseqJl1VXAxW?= =?us-ascii?Q?5chnHmcRvWER69BcaSDYRb5WDxwecZVPKgR9Mc4PFNlj2F/YcJLq5q2ZdeQz?= =?us-ascii?Q?hnG2fIvi9SY+SNc8Xa/3q/KXQ/ohowXnqHmp78aRGEvHeL3oWXkiQ6iZHUXu?= =?us-ascii?Q?plbya4cnzq5HFDX5OSdrCMsYdHMRoEBWzBqiAjZmE0hqK8doSIgKXaLbGBLv?= =?us-ascii?Q?rJxbHL5RbUiPIcC3tM6SCcZqh/Q8qCkqL7lMKDWKnV8kO5WuRq8SSjHYbld+?= =?us-ascii?Q?pCq0hzixrnokefRVHPK9dexDivItxVDtfg4KuHZY29TO7IeBRaoi+6tBKMLK?= =?us-ascii?Q?8d2suZITJDrZaxiXZYG+dG1amqXT3WFm5DFWc7M9iyww+97wnW07bo8TJfHB?= =?us-ascii?Q?6wp+a4vvs1gGSVOuRiCeJWc1xW5uX2fgSo+UocdwdOB1zfNyCDsIhXgkDR/2?= =?us-ascii?Q?NFSfSZCcS2dfINBXQs+745Ke7b7QLUl6vk5wEA1SQU7a3gMlchsq1X9Q1Lxl?= =?us-ascii?Q?3PP+COrPWD/25H+/pkzG7IKq6zkpcZZX71rlqf53riFnyTMIaDj8629wta2u?= =?us-ascii?Q?qG6ANvDZh6QXTWYa8Xj4VlQXZJ8eFdelMeUOxmnQrHjybywYJ3oAn6LDIdiI?= =?us-ascii?Q?bR+l7lb7ZRzLyc1J4U9BUzG+M2E51SrgXgyk57s?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB1928; 5:EKW/d3yYMHdX9WGftehHtbY6wIbcmBDgNLYeHKl8lEyodFaaSucLM+A9on689PUqDdQVYU2Y4eLR+1FrOTf3oVhe7fWhbK/fSOtgR3b4zpYc1UAZKl+wk1z7r9Vu+m+ZlaYQZQOMW06S2sUwPAnq8vSQRa1Z9enKQyuPJhysecU=; 24:A7h/uYcjYfZxZv5IqAAnvzxlLP1EkQ+TfiaCOUWgFFuE+TkN9lzllK9zmVz4HQL1GvWYHhKHnGxVyL9RkjPQfEMXNaMOmVsJfqatSQrGAhU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2016 09:49:07.7290 (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: BY2PR03MB1928 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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: Simon Horman Cc: Magnus Damm Signed-off-by: Peter Chen --- arch/arm/mach-shmobile/pm-rmobile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index c0b05e9..8eb2cb6 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -209,6 +209,7 @@ static void __init add_special_pd(struct device_node *np, enum pd_types type) special_pds[num_special_pds].pd = pd; special_pds[num_special_pds].type = type; num_special_pds++; + of_node_put(pd); } static void __init get_special_pds(void)