mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
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>
This commit is contained in:
parent
402e73c519
commit
066502d483
1 changed files with 2 additions and 4 deletions
|
@ -35,7 +35,6 @@ struct exynos_pm_domain_config {
|
||||||
*/
|
*/
|
||||||
struct exynos_pm_domain {
|
struct exynos_pm_domain {
|
||||||
void __iomem *base;
|
void __iomem *base;
|
||||||
char const *name;
|
|
||||||
bool is_off;
|
bool is_off;
|
||||||
struct generic_pm_domain pd;
|
struct generic_pm_domain pd;
|
||||||
struct clk *oscclk;
|
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]);
|
pd->pclk[i] = clk_get_parent(pd->clk[i]);
|
||||||
if (clk_set_parent(pd->clk[i], pd->oscclk))
|
if (clk_set_parent(pd->clk[i], pd->oscclk))
|
||||||
pr_err("%s: error setting oscclk as parent to clock %d\n",
|
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 */
|
continue; /* Skip on first power up */
|
||||||
if (clk_set_parent(pd->clk[i], pd->pclk[i]))
|
if (clk_set_parent(pd->clk[i], pd->pclk[i]))
|
||||||
pr_err("%s: error setting parent to clock%d\n",
|
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;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
pd->name = pd->pd.name;
|
|
||||||
pd->base = of_iomap(np, 0);
|
pd->base = of_iomap(np, 0);
|
||||||
if (!pd->base) {
|
if (!pd->base) {
|
||||||
pr_warn("%s: failed to map memory\n", __func__);
|
pr_warn("%s: failed to map memory\n", __func__);
|
||||||
|
|
Loading…
Reference in a new issue