diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2012-08-06 19:15:02 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-09-03 19:44:58 -0400 |
commit | a62595d359ba8ca0f25b93c06eab84ba97ca516f (patch) | |
tree | bd6ec8884fa3bcbf7f22ac77d55d7a13084a51e7 /arch/arm/mach-shmobile | |
parent | 45e5ca575647ebbca932f34a1ed915ae7a581cbb (diff) |
ARM: shmobile: Make rmobile_init_pm_domain() static
Since rmobile_init_pm_domain() is not called anywhere outside of
arch/arm/mach-shmobile/pm-rmobile.c any more, it can be made static
and its header may be removed from pm-rmobile.h. Modify the code
accordingly.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Magnus Damm <damm@opensource.se>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/pm-rmobile.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/pm-rmobile.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-shmobile/include/mach/pm-rmobile.h b/arch/arm/mach-shmobile/include/mach/pm-rmobile.h index 4c264c74760f..7fd9ad1fefe4 100644 --- a/arch/arm/mach-shmobile/include/mach/pm-rmobile.h +++ b/arch/arm/mach-shmobile/include/mach/pm-rmobile.h | |||
@@ -30,12 +30,10 @@ struct rmobile_pm_domain *to_rmobile_pd(struct generic_pm_domain *d) | |||
30 | } | 30 | } |
31 | 31 | ||
32 | #ifdef CONFIG_PM | 32 | #ifdef CONFIG_PM |
33 | extern void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd); | ||
34 | extern void rmobile_init_domains(struct rmobile_pm_domain domains[], int num); | 33 | extern void rmobile_init_domains(struct rmobile_pm_domain domains[], int num); |
35 | extern void rmobile_add_device_to_domain(const char *domain_name, | 34 | extern void rmobile_add_device_to_domain(const char *domain_name, |
36 | struct platform_device *pdev); | 35 | struct platform_device *pdev); |
37 | #else | 36 | #else |
38 | #define rmobile_init_pm_domain(pd) do { } while (0) | ||
39 | #define rmobile_init_domains(domains, num) do { } while (0) | 37 | #define rmobile_init_domains(domains, num) do { } while (0) |
40 | #define rmobile_add_device_to_domain(name, pdev) do { } while (0) | 38 | #define rmobile_add_device_to_domain(name, pdev) do { } while (0) |
41 | #endif /* CONFIG_PM */ | 39 | #endif /* CONFIG_PM */ |
diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index 4b6f2ea3169f..63f35665df31 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c | |||
@@ -134,7 +134,7 @@ static int rmobile_pd_start_dev(struct device *dev) | |||
134 | return ret; | 134 | return ret; |
135 | } | 135 | } |
136 | 136 | ||
137 | void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) | 137 | static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) |
138 | { | 138 | { |
139 | struct generic_pm_domain *genpd = &rmobile_pd->genpd; | 139 | struct generic_pm_domain *genpd = &rmobile_pd->genpd; |
140 | struct dev_power_governor *gov = rmobile_pd->gov; | 140 | struct dev_power_governor *gov = rmobile_pd->gov; |