Skip to content

Commit c8d8770

Browse files
geertustorulf
authored andcommitted
pmdomain: renesas: rcar-sysc: Remove rcar_sysc_nullify() helper
There are no more users left of the rcar_sysc_nullify() helper, so it can be removed. Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Kuninori Morimoto <[email protected]> Link: https://lore.kernel.org/r/ad61b09283cc8a9cf93a5ea9fffd1cb283b9db92.1713348705.git.geert+renesas@glider.be Signed-off-by: Ulf Hansson <[email protected]>
1 parent 43fefae commit c8d8770

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

drivers/pmdomain/renesas/rcar-sysc.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -439,18 +439,6 @@ static int __init rcar_sysc_pd_init(void)
439439
}
440440
early_initcall(rcar_sysc_pd_init);
441441

442-
void __init rcar_sysc_nullify(struct rcar_sysc_area *areas,
443-
unsigned int num_areas, u8 id)
444-
{
445-
unsigned int i;
446-
447-
for (i = 0; i < num_areas; i++)
448-
if (areas[i].isr_bit == id) {
449-
areas[i].name = NULL;
450-
return;
451-
}
452-
}
453-
454442
#ifdef CONFIG_ARCH_R8A7779
455443
static int rcar_sysc_power_cpu(unsigned int idx, bool on)
456444
{

drivers/pmdomain/renesas/rcar-sysc.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,4 @@ extern const struct rcar_sysc_info r8a77980_sysc_info;
7171
extern const struct rcar_sysc_info r8a77990_sysc_info;
7272
extern const struct rcar_sysc_info r8a77995_sysc_info;
7373

74-
75-
/*
76-
* Helpers for fixing up power area tables depending on SoC revision
77-
*/
78-
79-
extern void rcar_sysc_nullify(struct rcar_sysc_area *areas,
80-
unsigned int num_areas, u8 id);
81-
8274
#endif /* __SOC_RENESAS_RCAR_SYSC_H__ */

0 commit comments

Comments
 (0)