diff mbox

[v3,04/11] soc: renesas: rcar-sysc: Make rcar_sysc_power_is_off() static

Message ID 1457551127-21934-5-git-send-email-geert+renesas@glider.be (mailing list archive)
State Superseded
Delegated to: Simon Horman
Headers show

Commit Message

Geert Uytterhoeven March 9, 2016, 7:18 p.m. UTC
As of commit b12ff41658171f53 ("ARM: shmobile: r8a7779: Remove legacy PM
Domain remainings"), rcar_sysc_power_is_off() is no longer used from
SoC-specific code.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v3:
  - New.
---
 drivers/soc/renesas/rcar-sysc.c       | 2 +-
 include/linux/soc/renesas/rcar-sysc.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

Comments

Laurent Pinchart March 10, 2016, 9:19 a.m. UTC | #1
Hi Geert,

Thank you for the patch.

On Wednesday 09 March 2016 20:18:40 Geert Uytterhoeven wrote:
> As of commit b12ff41658171f53 ("ARM: shmobile: r8a7779: Remove legacy PM
> Domain remainings"), rcar_sysc_power_is_off() is no longer used from
> SoC-specific code.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
> v3:
>   - New.
> ---
>  drivers/soc/renesas/rcar-sysc.c       | 2 +-
>  include/linux/soc/renesas/rcar-sysc.h | 1 -
>  2 files changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/soc/renesas/rcar-sysc.c
> b/drivers/soc/renesas/rcar-sysc.c index 6b21ea2a65bf59b9..28af0b704fc008d2
> 100644
> --- a/drivers/soc/renesas/rcar-sysc.c
> +++ b/drivers/soc/renesas/rcar-sysc.c
> @@ -149,7 +149,7 @@ int rcar_sysc_power_up(const struct rcar_sysc_ch
> *sysc_ch) return rcar_sysc_power(sysc_ch, true);
>  }
> 
> -bool rcar_sysc_power_is_off(const struct rcar_sysc_ch *sysc_ch)
> +static bool rcar_sysc_power_is_off(const struct rcar_sysc_ch *sysc_ch)
>  {
>  	unsigned int st;
> 
> diff --git a/include/linux/soc/renesas/rcar-sysc.h
> b/include/linux/soc/renesas/rcar-sysc.h index
> 96f30c2883881d97..92fc613ab23db091 100644
> --- a/include/linux/soc/renesas/rcar-sysc.h
> +++ b/include/linux/soc/renesas/rcar-sysc.h
> @@ -11,7 +11,6 @@ struct rcar_sysc_ch {
> 
>  int rcar_sysc_power_down(const struct rcar_sysc_ch *sysc_ch);
>  int rcar_sysc_power_up(const struct rcar_sysc_ch *sysc_ch);
> -bool rcar_sysc_power_is_off(const struct rcar_sysc_ch *sysc_ch);
>  void __iomem *rcar_sysc_init(phys_addr_t base);
> 
>  #endif /* __LINUX_SOC_RENESAS_RCAR_SYSC_H__ */
diff mbox

Patch

diff --git a/drivers/soc/renesas/rcar-sysc.c b/drivers/soc/renesas/rcar-sysc.c
index 6b21ea2a65bf59b9..28af0b704fc008d2 100644
--- a/drivers/soc/renesas/rcar-sysc.c
+++ b/drivers/soc/renesas/rcar-sysc.c
@@ -149,7 +149,7 @@  int rcar_sysc_power_up(const struct rcar_sysc_ch *sysc_ch)
 	return rcar_sysc_power(sysc_ch, true);
 }
 
-bool rcar_sysc_power_is_off(const struct rcar_sysc_ch *sysc_ch)
+static bool rcar_sysc_power_is_off(const struct rcar_sysc_ch *sysc_ch)
 {
 	unsigned int st;
 
diff --git a/include/linux/soc/renesas/rcar-sysc.h b/include/linux/soc/renesas/rcar-sysc.h
index 96f30c2883881d97..92fc613ab23db091 100644
--- a/include/linux/soc/renesas/rcar-sysc.h
+++ b/include/linux/soc/renesas/rcar-sysc.h
@@ -11,7 +11,6 @@  struct rcar_sysc_ch {
 
 int rcar_sysc_power_down(const struct rcar_sysc_ch *sysc_ch);
 int rcar_sysc_power_up(const struct rcar_sysc_ch *sysc_ch);
-bool rcar_sysc_power_is_off(const struct rcar_sysc_ch *sysc_ch);
 void __iomem *rcar_sysc_init(phys_addr_t base);
 
 #endif /* __LINUX_SOC_RENESAS_RCAR_SYSC_H__ */