From patchwork Tue Oct 2 09:24:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 1536541 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 36A3FDF238 for ; Tue, 2 Oct 2012 09:26:35 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TIyik-0005jx-Sf; Tue, 02 Oct 2012 09:24:54 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TIyiP-0005dF-QI for linux-arm-kernel@lists.infradead.org; Tue, 02 Oct 2012 09:24:34 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MB900KYKE4HGZ10@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 02 Oct 2012 18:24:33 +0900 (KST) X-AuditID: cbfee61a-b7f726d000000ec7-27-506ab2d09d05 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 38.C7.03783.0D2BA605; Tue, 02 Oct 2012 18:24:33 +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 <0MB900MEOE4G7Q90@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 02 Oct 2012 18:24:32 +0900 (KST) From: Tomasz Figa To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/4] ARM: EXYNOS: pm_domain: Fix power domain name initialization Date: Tue, 02 Oct 2012 11:24:04 +0200 Message-id: <1349169846-30385-3-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1349169846-30385-1-git-send-email-t.figa@samsung.com> References: <1349169846-30385-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEJMWRmVeSWpSXmKPExsVy+t9jAd2Lm7ICDL5PZrPY9PgaqwOjx+Yl 9QGMUVw2Kak5mWWpRfp2CVwZqxfvYCvYwlax9dw2xgbGDaxdjJwcEgImEp0nV7FA2GISF+6t ZwOxhQQWMUq8XRnTxcgFZG9mkvi7cDk7SIJNQE3ic8MjsCIRAW+JyWf+soMUMQssZZS49Pg+ 2CRhgTCJHdNPgTWwCKhKLD/3GKyBV8BJYsaa1cwQ2+Qlnt7vA4tzCjhLbOn6wQix2Uni3suj jBMYeRcwMqxiFE0tSC4oTkrPNdQrTswtLs1L10vOz93ECPb5M6kdjCsbLA4xCnAwKvHw7jyZ GSDEmlhWXJl7iFGCg1lJhPfc3KwAId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rzNHikBQgLpiSWp 2ampBalFMFkmDk6pBkblLU/kvaMXG/jbxrgW5tf0SUp6eS3S5Uj6V9EvrCE4h+Gpl2WHsE/A vh8im/TFDH9enxzzjNt7uzPPfNPpnCru1/Jc7z9erBoRoPr2aZa63xqmN/EN4QbrYpvOvmg/ ylisvU1KbMPSxA+fePlWMPcY5vZr8s+6/qnzbukF16OVN3fdbYk7ocRSnJFoqMVcVJwIAOdv KIr1AQAA X-Spam-Note: CRM114 invocation failed X-Spam-Score: -9.0 (---------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-9.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.25 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -2.1 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, t.figa@samsung.com, tomasz.figa@gmail.com, rjw@sisk.pl, kyungmin.park@samsung.com, thomas.abraham@linaro.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;