From patchwork Tue Nov 13 12:51:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 1733841 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 138483FCAE for ; Tue, 13 Nov 2012 12:55:14 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TYFzT-0006dP-U1; Tue, 13 Nov 2012 12:53:20 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TYFz0-0006TN-RQ for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2012 12:52:55 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MDF00A6AFS0M620@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2012 21:52:48 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-90-50a242a0a064 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id C9.1F.01231.0A242A05; Tue, 13 Nov 2012 21:52:48 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MDF00872FQUGE30@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2012 21:52:48 +0900 (KST) From: Tomasz Figa To: linux-samsung-soc@vger.kernel.org Subject: [PATCH v3 2/4] ARM: EXYNOS: pm_domain: Fix power domain name initialization Date: Tue, 13 Nov 2012 13:51:53 +0100 Message-id: <1352811115-1198-3-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1352811115-1198-1-git-send-email-t.figa@samsung.com> References: <1352811115-1198-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIJMWRmVeSWpSXmKPExsVy+t9jAd0FTosCDH5sk7fY9PgaqwOjx+Yl 9QGMUVw2Kak5mWWpRfp2CVwZJ4+9YSnYzFZx9ddD5gbG9axdjJwcEgImEvMXb4GyxSQu3FvP 1sXIxSEksIhRYt3qD4wgCSGBzUwSj67YgthsAmoSnxsesYHYIgKqEp/bFrCDNDALPGeU6Fvw jAUkISwQJrF3wXkwmwWoaN7Kn2A2r4CjxOsnHewQ2+Qlnt7vAxvEKeAkcXH9B6ArOICWOUr8 7uCewMi7gJFhFaNoakFyQXFSeq6hXnFibnFpXrpecn7uJkawx59J7WBc2WBxiFGAg1GJh/eG y8IAIdbEsuLK3EOMEhzMSiK8BlKLAoR4UxIrq1KL8uOLSnNSiw8xSnOwKInzNnukBAgJpCeW pGanphakFsFkmTg4pRoYJU1rxBPrRfcbufle/sj7+N2quRvSGUqur5Hu+D/rzEanadvj9k7g Z3WqzknWnBotZ8t5gSe+2r9qwaoAY4Xk3X5/64yShT8zpkvY+Xxace31pCP31zDPW+f/WsRn Yd195Z2Hl7IYrN7JKNAxV+1UWqTBMp3jDxO0+++sPHZFSDIqpfPxnagTSizFGYmGWsxFxYkA ty9f+PQBAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121113_075251_257750_1D8BF937 X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.6 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.34 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: kgene.kim@samsung.com, linux-pm@vger.kernel.org, t.figa@samsung.com, tomasz.figa@gmail.com, rjw@sisk.pl, kyungmin.park@samsung.com, thomas.abraham@linaro.org, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch adds initialization of name field in generic power domain struct. Signed-off-by: Tomasz Figa Signed-off-by: Kyungmin Park --- arch/arm/mach-exynos/pm_domains.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/pm_domains.c b/arch/arm/mach-exynos/pm_domains.c index d1abc1a..5b7ce7e 100644 --- a/arch/arm/mach-exynos/pm_domains.c +++ b/arch/arm/mach-exynos/pm_domains.c @@ -98,7 +98,8 @@ static __init int exynos_pm_dt_parse_domains(void) return -ENOMEM; } - pd->name = np->name; + pd->pd.name = kstrdup(np->name, GFP_KERNEL); + pd->name = pd->pd.name; pd->base = of_iomap(np, 0); pd->pd.power_off = exynos_pd_power_off; pd->pd.power_on = exynos_pd_power_on;