diff options
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2024-02-27 17:05:50 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-03-02 14:29:36 -0500 |
commit | 217d7191b1c2803c821e7c285c4c85320829d3a3 (patch) | |
tree | c4f153c7d200dbc8dc5f7e428662338e30d07011 | |
parent | 18c3f3a26558205099f7b825cc8a6f6d237f9cdd (diff) | |
download | u-boot-217d7191b1c2803c821e7c285c4c85320829d3a3.zip u-boot-217d7191b1c2803c821e7c285c4c85320829d3a3.tar.gz u-boot-217d7191b1c2803c821e7c285c4c85320829d3a3.tar.bz2 |
ARM: renesas: Simplify weak symbols
Simplify the weak symbols use in cpu_info.c by using the __weak macro.
The result is identical, but the syntax is much simpler. Furthermore,
drop three more rmobile* symbols which are now unused.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
-rw-r--r-- | arch/arm/mach-rmobile/cpu_info.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/arm/mach-rmobile/cpu_info.c b/arch/arm/mach-rmobile/cpu_info.c index 66ac6b3..2f9a437 100644 --- a/arch/arm/mach-rmobile/cpu_info.c +++ b/arch/arm/mach-rmobile/cpu_info.c @@ -36,26 +36,20 @@ __weak const u8 *rzg_get_cpu_name(void) return 0; } -static u32 __rmobile_get_cpu_type(void) +__weak u32 renesas_get_cpu_type(void) { return 0x0; } -u32 renesas_get_cpu_type(void) - __attribute__((weak, alias("__rmobile_get_cpu_type"))); -static u32 __rmobile_get_cpu_rev_integer(void) +__weak u32 renesas_get_cpu_rev_integer(void) { return 0; } -u32 renesas_get_cpu_rev_integer(void) - __attribute__((weak, alias("__rmobile_get_cpu_rev_integer"))); -static u32 __rmobile_get_cpu_rev_fraction(void) +__weak u32 renesas_get_cpu_rev_fraction(void) { return 0; } -u32 renesas_get_cpu_rev_fraction(void) - __attribute__((weak, alias("__rmobile_get_cpu_rev_fraction"))); /* CPU information table */ static const struct { |