linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: t.figa@samsung.com (Tomasz Figa)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 2/4] ARM: EXYNOS: pm_domain: Fix power domain name initialization
Date: Tue, 13 Nov 2012 13:51:53 +0100	[thread overview]
Message-ID: <1352811115-1198-3-git-send-email-t.figa@samsung.com> (raw)
In-Reply-To: <1352811115-1198-1-git-send-email-t.figa@samsung.com>

This patch adds initialization of name field in generic power domain
struct.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 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;
-- 
1.8.0

  parent reply	other threads:[~2012-11-13 12:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-13 12:51 [PATCH v3 0/4] ARM: EXYNOS: Power domain DT support extension Tomasz Figa
2012-11-13 12:51 ` [PATCH v3 1/4] ARM: EXYNOS: pm_domain: Detect domain state on registration from DT Tomasz Figa
2012-11-13 12:51 ` Tomasz Figa [this message]
2012-11-13 12:51 ` [PATCH v3 3/4] ARM: EXYNOS: pm_domain: Bind devices to power domains using DT Tomasz Figa
2012-11-13 12:51 ` [PATCH v3 4/4] ARM: dts: exynos4: Set up power domains Tomasz Figa
2012-11-13 13:00 ` [PATCH v3 0/4] ARM: EXYNOS: Power domain DT support extension Tomasz Figa
2012-11-20  4:53   ` Kukjin Kim
  -- strict thread matches above, loose matches on Subject: below --
2012-11-13 13:08 [PATCH v3 RESEND " Tomasz Figa
2012-11-13 13:08 ` [PATCH v3 2/4] ARM: EXYNOS: pm_domain: Fix power domain name initialization Tomasz Figa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1352811115-1198-3-git-send-email-t.figa@samsung.com \
    --to=t.figa@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).