]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: renesas: Simplify weak symbols
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 27 Feb 2024 16:05:50 +0000 (17:05 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 2 Mar 2024 19:29:36 +0000 (14:29 -0500)
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>
arch/arm/mach-rmobile/cpu_info.c

index 66ac6b3fcfbf5d090c1b1845fc308e000ef4cc6a..2f9a4374a9687baf2b4ff7fd546ef00acd0a6915 100644 (file)
@@ -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 {