diff options
| author | Sam Protsenko <semen.protsenko@linaro.org> | 2025-07-16 21:44:26 -0500 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2025-07-24 13:30:19 -0600 |
| commit | 70a4d1fa1ddb2f5f8f9a27442563f182549abbb5 (patch) | |
| tree | 640e96b6367a176d682b3d6b2d2d6ec82fb56bd2 /board/broadcom/bcmstb/bcmstb.c | |
| parent | 70bf6e33e15e2ce56f6e3e9a3f725136c9c6f486 (diff) | |
treewide: Remove empty board_init() function from all boards
Commit 86acdce2ba88 ("common: add config for board_init() call")
introduced CONFIG_BOARD_INIT option. This option can be disabled for the
boards where board_init() function is not needed. Remove empty
board_init() calls for all boards where it's possible, and disable
CONFIG_BOARD_INIT in all related defconfigs.
This cleanup was made semi-automatically using these scripts: [1].
No functional change, but the binary size for the modified boards is
reduced a bit.
[1] https://github.com/joe-skb7/uboot-convert-scripts/tree/master/remove-board-init
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Tested-by: Adam Ford <aford173@gmail.com> #imx8mm_beacon
Tested-by: Bryan Brattlof <bb@ti.com>
Acked-by: Peng Fan <peng.fan@nxp.com> #NXP boards
Diffstat (limited to 'board/broadcom/bcmstb/bcmstb.c')
| -rw-r--r-- | board/broadcom/bcmstb/bcmstb.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/board/broadcom/bcmstb/bcmstb.c b/board/broadcom/bcmstb/bcmstb.c index e655f610c84..e7313d8c431 100644 --- a/board/broadcom/bcmstb/bcmstb.c +++ b/board/broadcom/bcmstb/bcmstb.c @@ -32,11 +32,6 @@ union reg_value_union { const phys_addr_t *address; }; -int board_init(void) -{ - return 0; -} - void reset_cpu(void) { } |
