diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-06-04 14:22:25 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2015-07-05 20:23:54 -0400 |
commit | 23758258220c2fcdabb30a3c6fe0a3ce6c705550 (patch) | |
tree | 39ad2f30449579cf63be31961af58c9068d18fef /arch/arm/mach-shmobile/pm-rmobile.c | |
parent | d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff) |
ARM: shmobile: R-Mobile: Move to_rmobile_pd from header to source file
to_rmobile_pd() is only used inside pm-rmobile.c
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/pm-rmobile.c')
-rw-r--r-- | arch/arm/mach-shmobile/pm-rmobile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index 95018209ff0b..94161c9b1878 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c | |||
@@ -34,6 +34,12 @@ | |||
34 | #define PSTR_RETRIES 100 | 34 | #define PSTR_RETRIES 100 |
35 | #define PSTR_DELAY_US 10 | 35 | #define PSTR_DELAY_US 10 |
36 | 36 | ||
37 | static inline | ||
38 | struct rmobile_pm_domain *to_rmobile_pd(struct generic_pm_domain *d) | ||
39 | { | ||
40 | return container_of(d, struct rmobile_pm_domain, genpd); | ||
41 | } | ||
42 | |||
37 | static int rmobile_pd_power_down(struct generic_pm_domain *genpd) | 43 | static int rmobile_pd_power_down(struct generic_pm_domain *genpd) |
38 | { | 44 | { |
39 | struct rmobile_pm_domain *rmobile_pd = to_rmobile_pd(genpd); | 45 | struct rmobile_pm_domain *rmobile_pd = to_rmobile_pd(genpd); |