Skip to contentSkip to conversation

fdt: nios: Fix warning in ft_cpu_setup()

PATCH New Simon Glass 2 participants 3 messages Apr 3, 2015 – Apr 10, 2015 NIOS2 architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fdt: nios: Fix warning in ft_cpu_setup()

This function should not return a value.

---

 arch/nios2/cpu/fdt.c | 2 --
 1 file changed, 2 deletions(-)
arch/nios2/cpu/fdt.c +0 -2
index 5024682..79f72aa 100644
@@ -34,7 +34,5 @@ void ft_cpu_setup(void *blob, bd_t *bd)
 	 * Note: aliases in the dts are required for this
 	 */
 	fdt_fixup_ethernet(blob);
-
-	return 0;
 }
 #endif /* CONFIG_OF_LIBFDT && CONFIG_OF_BOARD_SETUP */
Signature · 1 line
2.2.0.rc0.207.ga3a616c
#1 lore raw

PATCH 1/1 fdt: nios: Fix warning in ft_cpu_setup()

Hi Simon,

Quoted 14 lines · Simon Glass

This function should not return a value.

---

  arch/nios2/cpu/fdt.c | 2 --
  1 file changed, 2 deletions(-)
arch/nios2/cpu/fdt.c +0 -0
index 5024682..79f72aa 100644

arch/nios2/cpu/fdt.c void ft_cpu_setup(void *blob, bd_t *bd) · line 38

Quoted 7 lines
arch/nios2/cpu/fdt.c +0 -2
@@ -34,7 +34,5 @@ void ft_cpu_setup(void *blob, bd_t *bd)
  	 * Note: aliases in the dts are required for this
  	 */
  	fdt_fixup_ethernet(blob);
-
-	return 0;
  }
  #endif /* CONFIG_OF_LIBFDT && CONFIG_OF_BOARD_SETUP */
#2 lore raw

PATCH 1/1 fdt: nios: Fix warning in ft_cpu_setup()

Quoted 14 lines · Thomas Chou

Hi Simon,

Quoted 9 lines · Simon Glass

This function should not return a value.

---

  arch/nios2/cpu/fdt.c | 2 --
  1 file changed, 2 deletions(-)
Quoted 15 lines

arch/nios2/cpu/fdt.c void ft_cpu_setup(void *blob, bd_t *bd) · line 38

Quoted 13 lines
arch/nios2/cpu/fdt.c +0 -2
index 5024682..79f72aa 100644
@@ -34,7 +34,5 @@ void ft_cpu_setup(void *blob, bd_t *bd)
         * Note: aliases in the dts are required for this
         */
        fdt_fixup_ethernet(blob);
-
-       return 0;
  }
  #endif /* CONFIG_OF_LIBFDT && CONFIG_OF_BOARD_SETUP */

Applied to u-boot-fdt.