summaryrefslogtreecommitdiff
path: root/arch/arm/mach-shmobile/setup-r8a7740.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2012-08-07 03:13:37 +0400
committerRafael J. Wysocki <rjw@sisk.pl>2012-09-04 03:44:57 +0400
commit7b5674075b7c7ddb0c4da18b1f104e1db774ce82 (patch)
tree8bbb5dfb3367c92599c48691d2599c8f3345a5f3 /arch/arm/mach-shmobile/setup-r8a7740.c
parente7e59a4b55706b0bbaba1cd8af46495553b6e876 (diff)
downloadlinux-7b5674075b7c7ddb0c4da18b1f104e1db774ce82.tar.xz
ARM: shmobile: Move r8a7740's PM domain objects to a table
Instead of giving a name to every r8a7740's PM domain object, put them all into a table and use rmobile_init_domains(), introduced by a previous patch, for initializing them all altogether. Also, use pm_genpd_add_subdomain_names() for adding A3SP as a subdomain of A4S. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Magnus Damm <damm@opensource.se>
Diffstat (limited to 'arch/arm/mach-shmobile/setup-r8a7740.c')
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7740.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c
index a18892d4d985..11bb1d984197 100644
--- a/arch/arm/mach-shmobile/setup-r8a7740.c
+++ b/arch/arm/mach-shmobile/setup-r8a7740.c
@@ -673,12 +673,7 @@ void __init r8a7740_add_standard_devices(void)
r8a7740_i2c_workaround(&i2c0_device);
r8a7740_i2c_workaround(&i2c1_device);
- /* PM domain */
- rmobile_init_pm_domain(&r8a7740_pd_a4s);
- rmobile_init_pm_domain(&r8a7740_pd_a3sp);
- rmobile_init_pm_domain(&r8a7740_pd_a4lc);
-
- pm_genpd_add_subdomain_names("A4S", "A3SP");
+ r8a7740_init_pm_domains();
/* add devices */
platform_add_devices(r8a7740_early_devices,