Skip to content

Commit 2375825

Browse files
geertuhorms
authored andcommitted
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>
1 parent d770e55 commit 2375825

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

arch/arm/mach-shmobile/pm-rmobile.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
#define PSTR_RETRIES 100
3535
#define PSTR_DELAY_US 10
3636

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+
3743
static int rmobile_pd_power_down(struct generic_pm_domain *genpd)
3844
{
3945
struct rmobile_pm_domain *rmobile_pd = to_rmobile_pd(genpd);

arch/arm/mach-shmobile/pm-rmobile.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ struct rmobile_pm_domain {
2626
bool no_debug;
2727
};
2828

29-
static inline
30-
struct rmobile_pm_domain *to_rmobile_pd(struct generic_pm_domain *d)
31-
{
32-
return container_of(d, struct rmobile_pm_domain, genpd);
33-
}
34-
3529
struct pm_domain_device {
3630
const char *domain_name;
3731
struct platform_device *pdev;

0 commit comments

Comments
 (0)