Skip to content

Commit 6b16953

Browse files
committed
ARM: shmobile: rcar-gen2: Remove unneeded once handling
rcar_gen2_pm_init() is only called from the smp_operations.smp_prepare_cpus() callback, which is called at most once. Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/116ef21e5f495432d913315bdc25fbc30edcf2e1.1693409184.git.geert+renesas@glider.be
1 parent 0bb80ec commit 6b16953

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,12 @@ void __init rcar_gen2_pm_init(void)
4646
{
4747
void __iomem *p;
4848
u32 bar;
49-
static int once;
5049
struct device_node *np;
5150
bool has_a7 = false;
5251
bool has_a15 = false;
5352
struct resource res;
5453
int error;
5554

56-
if (once++)
57-
return;
58-
5955
for_each_of_cpu_node(np) {
6056
if (of_device_is_compatible(np, "arm,cortex-a15"))
6157
has_a15 = true;

0 commit comments

Comments
 (0)