diff mbox series

arm: mach-rmobile: Mark the default s_init function as weak

Message ID 20200922080917.4693-1-biju.das.jz@bp.renesas.com
State Accepted
Commit aead065e0e2e37a0d0e90073cbb2a68068d77097
Delegated to: Marek Vasut
Headers show
Series arm: mach-rmobile: Mark the default s_init function as weak | expand

Commit Message

Biju Das Sept. 22, 2020, 8:09 a.m. UTC
Mark the default s_init function as weak, so that SoC's can
override it if needed, and it will still be discarded if unused.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 arch/arm/mach-rmobile/lowlevel_init_gen3.S | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Marek Vasut Sept. 22, 2020, 1:12 p.m. UTC | #1
On 9/22/20 10:09 AM, Biju Das wrote:
> Mark the default s_init function as weak, so that SoC's can
> override it if needed, and it will still be discarded if unused.

Applied to sh/next, thanks
diff mbox series

Patch

diff --git a/arch/arm/mach-rmobile/lowlevel_init_gen3.S b/arch/arm/mach-rmobile/lowlevel_init_gen3.S
index 213ec143e2..1df2c40345 100644
--- a/arch/arm/mach-rmobile/lowlevel_init_gen3.S
+++ b/arch/arm/mach-rmobile/lowlevel_init_gen3.S
@@ -31,6 +31,12 @@  ENTRY(save_boot_params)
 	b	save_boot_params_ret
 ENDPROC(save_boot_params)
 
+.pushsection .text.s_init, "ax"
+WEAK(s_init)
+	ret
+ENDPROC(s_init)
+.popsection
+
 ENTRY(lowlevel_init)
 	mov	x29, lr			/* Save LR */