diff options
Diffstat (limited to 'board/sunxi')
-rw-r--r-- | board/sunxi/board.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 2e2a1f5..2d5335f 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -607,11 +607,14 @@ int misc_init_r(void) } #endif -#ifdef CONFIG_OF_BOARD_SETUP int ft_board_setup(void *blob, bd_t *bd) { + int __maybe_unused r; + #ifdef CONFIG_VIDEO_DT_SIMPLEFB - return sunxi_simplefb_setup(blob); + r = sunxi_simplefb_setup(blob); + if (r) + return r; #endif + return 0; } -#endif /* CONFIG_OF_BOARD_SETUP */ |