summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2023-08-31 13:17:44 +0200
committerGeert Uytterhoeven <geert+renesas@glider.be>2023-09-25 09:47:21 +0200
commit6b16953bec40e6fce853d2a69b8e738d61896568 (patch)
treead98f2122be8376b5836429834d905286763a07c /arch/arm/mach-shmobile
parentLinux 6.6-rc1 (diff)
downloadlinux-6b16953bec40e6fce853d2a69b8e738d61896568.tar.xz
linux-6b16953bec40e6fce853d2a69b8e738d61896568.zip
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 <geert+renesas@glider.be> Link: https://lore.kernel.org/r/116ef21e5f495432d913315bdc25fbc30edcf2e1.1693409184.git.geert+renesas@glider.be
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r--arch/arm/mach-shmobile/pm-rcar-gen2.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/mach-shmobile/pm-rcar-gen2.c b/arch/arm/mach-shmobile/pm-rcar-gen2.c
index 672081405a7e..7447e5fd7ed4 100644
--- a/arch/arm/mach-shmobile/pm-rcar-gen2.c
+++ b/arch/arm/mach-shmobile/pm-rcar-gen2.c
@@ -46,16 +46,12 @@ void __init rcar_gen2_pm_init(void)
{
void __iomem *p;
u32 bar;
- static int once;
struct device_node *np;
bool has_a7 = false;
bool has_a15 = false;
struct resource res;
int error;
- if (once++)
- return;
-
for_each_of_cpu_node(np) {
if (of_device_is_compatible(np, "arm,cortex-a15"))
has_a15 = true;