Commit 4bde2e9d604f3a7d80e9bcc2c5f363746971dcd7
1 parent
385a08a60f
Exists in
v2017.01-smarct4x
and in
37 other branches
fdt: nios: Fix warning in ft_cpu_setup()
This function should not return a value. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Thomas Chou <thomas@wytron.com.tw>
Showing 1 changed file with 0 additions and 2 deletions Inline Diff
arch/nios2/cpu/fdt.c
1 | /* | 1 | /* |
2 | * (C) Copyright 2011, Missing Link Electronics | 2 | * (C) Copyright 2011, Missing Link Electronics |
3 | * Joachim Foerster <joachim@missinglinkelectronics.com> | 3 | * Joachim Foerster <joachim@missinglinkelectronics.com> |
4 | * | 4 | * |
5 | * Taken from arch/powerpc/cpu/ppc4xx/fdt.c: | 5 | * Taken from arch/powerpc/cpu/ppc4xx/fdt.c: |
6 | * | 6 | * |
7 | * (C) Copyright 2007-2008 | 7 | * (C) Copyright 2007-2008 |
8 | * Stefan Roese, DENX Software Engineering, sr@denx.de. | 8 | * Stefan Roese, DENX Software Engineering, sr@denx.de. |
9 | * | 9 | * |
10 | * SPDX-License-Identifier: GPL-2.0+ | 10 | * SPDX-License-Identifier: GPL-2.0+ |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <common.h> | 13 | #include <common.h> |
14 | 14 | ||
15 | #if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) | 15 | #if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) |
16 | #include <libfdt.h> | 16 | #include <libfdt.h> |
17 | #include <fdt_support.h> | 17 | #include <fdt_support.h> |
18 | 18 | ||
19 | DECLARE_GLOBAL_DATA_PTR; | 19 | DECLARE_GLOBAL_DATA_PTR; |
20 | 20 | ||
21 | int __ft_board_setup(void *blob, bd_t *bd) | 21 | int __ft_board_setup(void *blob, bd_t *bd) |
22 | { | 22 | { |
23 | ft_cpu_setup(blob, bd); | 23 | ft_cpu_setup(blob, bd); |
24 | 24 | ||
25 | return 0; | 25 | return 0; |
26 | } | 26 | } |
27 | int ft_board_setup(void *blob, bd_t *bd) | 27 | int ft_board_setup(void *blob, bd_t *bd) |
28 | __attribute__((weak, alias("__ft_board_setup"))); | 28 | __attribute__((weak, alias("__ft_board_setup"))); |
29 | 29 | ||
30 | void ft_cpu_setup(void *blob, bd_t *bd) | 30 | void ft_cpu_setup(void *blob, bd_t *bd) |
31 | { | 31 | { |
32 | /* | 32 | /* |
33 | * Fixup all ethernet nodes | 33 | * Fixup all ethernet nodes |
34 | * Note: aliases in the dts are required for this | 34 | * Note: aliases in the dts are required for this |
35 | */ | 35 | */ |
36 | fdt_fixup_ethernet(blob); | 36 | fdt_fixup_ethernet(blob); |
37 | |||
38 | return 0; | ||
39 | } | 37 | } |
40 | #endif /* CONFIG_OF_LIBFDT && CONFIG_OF_BOARD_SETUP */ | 38 | #endif /* CONFIG_OF_LIBFDT && CONFIG_OF_BOARD_SETUP */ |
41 | 39 |