From patchwork Thu Sep 6 09:38:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 1412701 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 EADEC3FC85 for ; Thu, 6 Sep 2012 09:42:08 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T9YXp-0004qm-Sn; Thu, 06 Sep 2012 09:38:41 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T9YXY-0004nV-Nw for linux-arm-kernel@lists.infradead.org; Thu, 06 Sep 2012 09:38:25 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M9X00EBP9FBPF50@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 06 Sep 2012 18:38:23 +0900 (KST) X-AuditID: cbfee61a-b7fd26d000002b62-2c-50486f0feb53 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 05.63.11106.F0F68405; Thu, 06 Sep 2012 18:38:23 +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 <0M9X00K2L9FLF240@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 06 Sep 2012 18:38:23 +0900 (KST) From: Tomasz Figa To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/3] ARM: EXYNOS: pm_domain: Fix power domain name initialization Date: Thu, 06 Sep 2012 11:38:05 +0200 Message-id: <1346924286-9584-3-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1346924286-9584-1-git-send-email-t.figa@samsung.com> References: <1346924286-9584-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMJMWRmVeSWpSXmKPExsVy+t9jAV3+fI8Ag18XjC02Pb7G6sDosXlJ fQBjFJdNSmpOZllqkb5dAlfG6sU72Aq2sFVsPbeNsYFxA2sXIyeHhICJxOz1L9ghbDGJC/fW s3UxcnEICSxilHjacIIFwtnMJHH+3HxmkCo2ATWJzw2P2EBsEQFvicln/rKDFDELNDBKzL41 kREkISwQLLF8/0awsSwCqhIzf00Ha+YVcJQ4c/gR1Dp5iaf3+8AGcQo4SVy7OBHsJCGgmpVT DzNPYORdwMiwilE0tSC5oDgpPddQrzgxt7g0L10vOT93EyPY68+kdjCubLA4xCjAwajEw/sr 3z1AiDWxrLgy9xCjBAezkgivpalHgBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXFep3N2AUIC6Ykl qdmpqQWpRTBZJg5OqQbGEz85X9wtFV3/Y+qDzgUds0K3fb514/Ex9dQF6b8dRdsdoj2Wu81N 23Rple1lvWsPHu1X2V66Y+bO0zF6+2N+JHP4TbyZahzxx8Z6YwyrWu7z9Zl7ols2t3eURaw1 +GITqmuaOkc/R21W1jzVi/+kGSfrPkld5OGu/f3A7qtPHr37fXWPjqxQuBJLcUaioRZzUXEi AL4vHlf2AQAA X-Spam-Note: CRM114 invocation failed X-Spam-Score: -6.9 (------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-6.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.33 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 T_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: rjw@sisk.pl, kyungmin.park@samsung.com, kgene.kim@samsung.com, thomas.abraham@linaro.org, Tomasz Figa 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;