From patchwork Tue Nov 13 13:08:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 1733881 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id E247B3FCAE for ; Tue, 13 Nov 2012 13:09:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753379Ab2KMNJh (ORCPT ); Tue, 13 Nov 2012 08:09:37 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:30120 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753200Ab2KMNJg (ORCPT ); Tue, 13 Nov 2012 08:09:36 -0500 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MDF00C5BGJRQCC0@mailout3.samsung.com>; Tue, 13 Nov 2012 22:09:35 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-da-50a2468f6ae1 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 90.64.12699.F8642A05; Tue, 13 Nov 2012 22:09:35 +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 <0MDF007RLGI5YYA0@mmp1.samsung.com>; Tue, 13 Nov 2012 22:09:35 +0900 (KST) From: Tomasz Figa To: linux-samsung-soc@vger.kernel.org Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kyungmin.park@samsung.com, kgene.kim@samsung.com, thomas.abraham@linaro.org, rjw@sisk.pl, m.szyprowski@samsung.com, t.figa@samsung.com, tomasz.figa@gmail.com Subject: [PATCH v3 2/4] ARM: EXYNOS: pm_domain: Fix power domain name initialization Date: Tue, 13 Nov 2012 14:08:25 +0100 Message-id: <1352812107-8777-3-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1352812107-8777-1-git-send-email-t.figa@samsung.com> References: <1352812107-8777-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBJMWRmVeSWpSXmKPExsVy+t9jAd1+t0UBBq3TDS0+9x5htJhxfh+T A5PH501yAYxRXDYpqTmZZalF+nYJXBknj71hKdjMVnH110PmBsb1rF2MnBwSAiYS925eZ4Ow xSQu3FsPZHNxCAksYpT4duoRM4TTxSQxcfoEsCo2ATWJzw2PwGwRAVWJz20L2EGKmAWeM0r0 LXjGApIQFgiT2LvgPJjNAlLUuogRxOYVcJSYPekjM8Q6eYmn9/vABnEKOEkcf7UArEYIqKZx 6QG2CYy8CxgZVjGKphYkFxQnpeca6RUn5haX5qXrJefnbmIE+/+Z9A7GVQ0WhxgFOBiVeHgV LRcGCLEmlhVX5h5ilOBgVhLhNZBaFCDEm5JYWZValB9fVJqTWnyIUZqDRUmct9kjJUBIID2x JDU7NbUgtQgmy8TBKdXAKMiRc5Jz8ey0c5eXTi2K2dJvLt/XpxrK8K90BoNU+o9pRibP2r6u v/Eyef6p4Ebxji1nrh3pWnxkVfhR4ROFnNwyT1Z6LDWuL+Np2u5auP/Whs59cy4lVc1W2H/w z2Nxlz0xnqv9Xq18H+Um9fZk/a+bnIcnbHK2iuFlmnlpl2DvIx2hoNetIUosxRmJhlrMRcWJ ANsF8rr7AQAA Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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;