summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-03-22 22:51:52 +0100
committerKlaus Goger <klaus.goger@theobroma-systems.com>2016-09-18 12:38:56 +0200
commita131ead54f1e4b07296d9976b3edcf3974e06b73 (patch)
tree8e9d00d875e313b786e3648abe326eace4886da1 /board
parent0c5a914f4c78100e79774d7ca010053fac1bc332 (diff)
sunxi: Select CONFIG_OF_BOARD_SETUP from arch/arm/Kconfig
Always select OF_BOARD_SETUP on sunxi, rather then having it in almost all our defconfigs. This also fixes it missing from some recently added defconfigs. This commit also modifies our ft_board_setup() to not cause warnings when CONFIG_VIDEO_DT_SIMPLEFB is not set, since we will now always build it. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'board')
-rw-r--r--board/sunxi/board.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index 2e2a1f59bc..2d5335f953 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 */