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: 1733801 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id BE04EDF280 for ; Tue, 13 Nov 2012 12:52:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754229Ab2KMMwu (ORCPT ); Tue, 13 Nov 2012 07:52:50 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:53651 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754095Ab2KMMwt (ORCPT ); Tue, 13 Nov 2012 07:52:49 -0500 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>; Tue, 13 Nov 2012 21:52:48 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-91-50a242a0354b Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id D9.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>; Tue, 13 Nov 2012 21:52:48 +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 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+NgFnrOJMWRmVeSWpSXmKPExsVy+t9jAd0FTosCDJZdULD43HuE0WLG+X1M DkwenzfJBTBGcdmkpOZklqUW6dslcGWcPPaGpWAzW8XVXw+ZGxjXs3YxcnJICJhIfGl+wQ5h i0lcuLeerYuRi0NIYBGjxIuP8xkhnC4mibPznoN1sAmoSXxueMQGYosIqEp8blvADlLELPCc UaJvwTMWkISwQJjE3gXnwWwWoKJ5K3+C2bwCjhKvn3RArZOXeHq/D2wQp4CTxMX1H4AWcABt c5T43cE9gZF3ASPDKkbR1ILkguKk9FxDveLE3OLSvHS95PzcTYxg7z+T2sG4ssHiEKMAB6MS D+8Nl4UBQqyJZcWVuYcYJTiYlUR4DaQWBQjxpiRWVqUW5ccXleakFh9ilOZgURLnbfZICRAS SE8sSc1OTS1ILYLJMnFwSjUwiv77riu1f2+t0FvnV0ftjFekC4XlzfbqYLz2+lqbjJD4yqP8 X9+lff1lHaEmsFK0WbI3zuzj5gs9Yst2OYikX8wq3TPToGsrwxH7ZV3asbZ1V6u3fksy3M21 +sGZU3w2oXKtb5T8xAWd3OYfS9i/7M/0OfFV4WxXN2hdfXBv/b5Q+R6W7MJLSizFGYmGWsxF xYkAPOLW5voBAAA= 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;