Skip to content

Commit 919c385

Browse files
committed
ARM: shmobile: rcar-gen2: Make rcar_gen2_{timer_init, reserve}() static
As of commit 1e90fea ("ARM: shmobile: r8a7791: Use common R-Car Gen2 machine definition"), there are no more users of rcar_gen2_timer_init() and rcar_gen2_reserve() outside arch/arm/mach-shmobile/setup-rcar-gen2.c. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Link: https://lore.kernel.org/r/20200908074403.4379-1-geert+renesas@glider.be
1 parent 9123e3a commit 919c385

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

arch/arm/mach-shmobile/rcar-gen2.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#ifndef __ASM_RCAR_GEN2_H__
33
#define __ASM_RCAR_GEN2_H__
44

5-
void rcar_gen2_timer_init(void);
6-
void rcar_gen2_reserve(void);
75
void rcar_gen2_pm_init(void);
86

97
#endif /* __ASM_RCAR_GEN2_H__ */

arch/arm/mach-shmobile/setup-rcar-gen2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static unsigned int __init get_extal_freq(void)
5959
#define CNTCR 0
6060
#define CNTFID0 0x20
6161

62-
void __init rcar_gen2_timer_init(void)
62+
static void __init rcar_gen2_timer_init(void)
6363
{
6464
bool need_update = true;
6565
void __iomem *base;
@@ -174,7 +174,7 @@ static int __init rcar_gen2_scan_mem(unsigned long node, const char *uname,
174174
return 0;
175175
}
176176

177-
void __init rcar_gen2_reserve(void)
177+
static void __init rcar_gen2_reserve(void)
178178
{
179179
struct memory_reserve_config mrc;
180180

0 commit comments

Comments
 (0)