aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/pm-rmobile.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2012-08-06 19:07:01 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2012-09-03 19:44:55 -0400
commit8bdd94689ef528738a0f14c44e069596a465d622 (patch)
tree521d2d77996f657247e9a536e48f0c85dc373246 /arch/arm/mach-shmobile/pm-rmobile.c
parent74a2799ab51acec9410f467fef8678ebb1125d7d (diff)
ARM: shmobile: Use names of power domains for adding devices to them
Make the power management code under arch/arm/mach-shmobile/ use names of power domains instead of pointers to domain objects for adding devices to the domains. This will allow us to put the domain objects into tables and register them all in one shot going forward. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Magnus Damm <damm@opensource.se>
Diffstat (limited to 'arch/arm/mach-shmobile/pm-rmobile.c')
-rw-r--r--arch/arm/mach-shmobile/pm-rmobile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c
index a8562540f1d6..c94056d6a029 100644
--- a/arch/arm/mach-shmobile/pm-rmobile.c
+++ b/arch/arm/mach-shmobile/pm-rmobile.c
@@ -149,12 +149,12 @@ void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd)
149 __rmobile_pd_power_up(rmobile_pd, false); 149 __rmobile_pd_power_up(rmobile_pd, false);
150} 150}
151 151
152void rmobile_add_device_to_domain(struct rmobile_pm_domain *rmobile_pd, 152void rmobile_add_device_to_domain(const char *domain_name,
153 struct platform_device *pdev) 153 struct platform_device *pdev)
154{ 154{
155 struct device *dev = &pdev->dev; 155 struct device *dev = &pdev->dev;
156 156
157 pm_genpd_add_device(&rmobile_pd->genpd, dev); 157 pm_genpd_name_add_device(domain_name, dev);
158 if (pm_clk_no_clocks(dev)) 158 if (pm_clk_no_clocks(dev))
159 pm_clk_add(dev, NULL); 159 pm_clk_add(dev, NULL);
160} 160}