]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: use the correct prototype for reset_cpu function
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 19 Jul 2021 09:21:50 +0000 (11:21 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 28 Jul 2021 23:30:22 +0000 (19:30 -0400)
Align reset_cpu function with the next prototypes in
sysreset.h or in cpu_func.h to solve compilation issue:

  void reset_cpu(void);

This patch solves the prototype conflict when cpu_func.h is
included.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/mach-mediatek/mt8183/init.c
board/congatec/cgtqmx8/cgtqmx8.c
board/hoperun/hihope-rzg2/hihope-rzg2.c
board/silinux/ek874/ek874.c

index 877f387102d50325c2e533ad39ad0b301ad79d5e..7496029705f61ea4a76831a090af9a6e68e1b946 100644 (file)
@@ -48,7 +48,7 @@ int mtk_soc_early_init(void)
        return 0;
 }
 
-void reset_cpu(ulong addr)
+void reset_cpu(void)
 {
        psci_system_reset();
 }
index fb0cf091389d94675a3672fe77318688da016ae4..a50a052df7689210cbedccf83722705dbbdbe9b1 100644 (file)
@@ -374,7 +374,7 @@ void detail_board_ddr_info(void)
 /*
  * Board specific reset that is system reset.
  */
-void reset_cpu(ulong addr)
+void reset_cpu(void)
 {
        /* TODO */
 }
index c1bfdcbc1d1511de6f68eefc8474ac3873d36fd3..c1db387b275c48b8d1f4e1d83b6a78d21ec10d6c 100644 (file)
@@ -65,7 +65,7 @@ int board_init(void)
        return 0;
 }
 
-void reset_cpu(ulong addr)
+void reset_cpu(void)
 {
        unsigned long midr, cputype;
 
index 5a219cd98d73b35fce1d52c1af98f7ec239d8980..1e948489f3637368651cde8f7d3dd77d76dcc4da 100644 (file)
@@ -24,7 +24,7 @@ int board_init(void)
        return 0;
 }
 
-void reset_cpu(ulong addr)
+void reset_cpu(void)
 {
        writel(RST_CA53_CODE, RST_CA53RESCNT);
 }