[U-Boot] [PATCH] fdt: nios: Fix warning in ft_cpu_setup()

This function should not return a value.
Signed-off-by: Simon Glass sjg@chromium.org ---
arch/nios2/cpu/fdt.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/arch/nios2/cpu/fdt.c b/arch/nios2/cpu/fdt.c index 5024682..79f72aa 100644 --- a/arch/nios2/cpu/fdt.c +++ b/arch/nios2/cpu/fdt.c @@ -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 */

Hi Simon,
On 2015年04月04日 07:57, Simon Glass wrote:
This function should not return a value.
Signed-off-by: Simon Glass sjg@chromium.org
arch/nios2/cpu/fdt.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/arch/nios2/cpu/fdt.c b/arch/nios2/cpu/fdt.c index 5024682..79f72aa 100644 --- a/arch/nios2/cpu/fdt.c +++ b/arch/nios2/cpu/fdt.c @@ -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 */
Acked-by: Thomas Chou thomas@wytron.com.tw

On 4 April 2015 at 02:38, Thomas Chou thomas@wytron.com.tw wrote:
Hi Simon,
On 2015年04月04日 07:57, Simon Glass wrote:
This function should not return a value.
Signed-off-by: Simon Glass sjg@chromium.org
arch/nios2/cpu/fdt.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/arch/nios2/cpu/fdt.c b/arch/nios2/cpu/fdt.c index 5024682..79f72aa 100644 --- a/arch/nios2/cpu/fdt.c +++ b/arch/nios2/cpu/fdt.c @@ -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);
} #endif /* CONFIG_OF_LIBFDT && CONFIG_OF_BOARD_SETUP */return 0;
Acked-by: Thomas Chou thomas@wytron.com.tw
Applied to u-boot-fdt.
participants (2)
-
Simon Glass
-
Thomas Chou