ARM: shmobile: R-Mobile: Move to_rmobile_pd from header to source file
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 4 Jun 2015 18:22:25 +0000 (20:22 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 6 Jul 2015 00:23:54 +0000 (09:23 +0900)
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>
arch/arm/mach-shmobile/pm-rmobile.c
arch/arm/mach-shmobile/pm-rmobile.h

index 95018209ff0b37cc696fb764658b63ed277397d7..94161c9b1878a01590792e159d0ac7fd99bcfe83 100644 (file)
 #define PSTR_RETRIES   100
 #define PSTR_DELAY_US  10
 
+static inline
+struct rmobile_pm_domain *to_rmobile_pd(struct generic_pm_domain *d)
+{
+       return container_of(d, struct rmobile_pm_domain, genpd);
+}
+
 static int rmobile_pd_power_down(struct generic_pm_domain *genpd)
 {
        struct rmobile_pm_domain *rmobile_pd = to_rmobile_pd(genpd);
index 53219786f539fa2428f16c522faee499cad0095b..3992b619c1278dcc0dff1cbab8776883e2ac5741 100644 (file)
@@ -26,12 +26,6 @@ struct rmobile_pm_domain {
        bool no_debug;
 };
 
-static inline
-struct rmobile_pm_domain *to_rmobile_pd(struct generic_pm_domain *d)
-{
-       return container_of(d, struct rmobile_pm_domain, genpd);
-}
-
 struct pm_domain_device {
        const char *domain_name;
        struct platform_device *pdev;