summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2017-01-30 13:18:57 +0100
committerKrzysztof Kozlowski <krzk@kernel.org>2017-01-31 21:30:04 +0200
commit066502d483dead0417841c5fa7cddb0a50f828e1 (patch)
treeaf59cc9cfb35f0c263d3f91d05a95d0f5a4198c0 /drivers/soc
parent402e73c5192b78ea4734f1c76fb7e68d9a41e3e2 (diff)
downloadlinux-066502d483dead0417841c5fa7cddb0a50f828e1.tar.gz
linux-066502d483dead0417841c5fa7cddb0a50f828e1.tar.bz2
linux-066502d483dead0417841c5fa7cddb0a50f828e1.zip
soc: samsung: pm_domains: Remove unused name field
Name is now in generic pm domain structure, so there is no need to duplicate it in private data. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/samsung/pm_domains.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/soc/samsung/pm_domains.c b/drivers/soc/samsung/pm_domains.c
index f265d326e132..05f63fe96920 100644
--- a/drivers/soc/samsung/pm_domains.c
+++ b/drivers/soc/samsung/pm_domains.c
@@ -35,7 +35,6 @@ struct exynos_pm_domain_config {
*/
struct exynos_pm_domain {
void __iomem *base;
- char const *name;
bool is_off;
struct generic_pm_domain pd;
struct clk *oscclk;
@@ -70,7 +69,7 @@ static int exynos_pd_power(struct generic_pm_domain *domain, bool power_on)
pd->pclk[i] = clk_get_parent(pd->clk[i]);
if (clk_set_parent(pd->clk[i], pd->oscclk))
pr_err("%s: error setting oscclk as parent to clock %d\n",
- pd->name, i);
+ domain->name, i);
}
}
@@ -101,7 +100,7 @@ static int exynos_pd_power(struct generic_pm_domain *domain, bool power_on)
continue; /* Skip on first power up */
if (clk_set_parent(pd->clk[i], pd->pclk[i]))
pr_err("%s: error setting parent to clock%d\n",
- pd->name, i);
+ domain->name, i);
}
}
@@ -163,7 +162,6 @@ static __init int exynos4_pm_init_power_domain(void)
return -ENOMEM;
}
- pd->name = pd->pd.name;
pd->base = of_iomap(np, 0);
if (!pd->base) {
pr_warn("%s: failed to map memory\n", __func__);