samsung:board: don't call set_board_type() for CONFIG_OF_MULTI
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Thu, 18 Sep 2014 11:02:19 +0000 (13:02 +0200)
committerPrzemyslaw Marczak <p.marczak@samsung.com>
Mon, 18 May 2015 09:54:53 +0000 (11:54 +0200)
For this config the set_board_type() is called much more earlier
- in the function setup_fdt(), so the second call in the board file
is unneeded.

Change-Id: I71037c593d00f7bde95a0880787e64d0d09ff173
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
board/samsung/common/board.c

index 59ae3b54bbe65706f9e7739fe88e8e3a5b9ede4c..103381f4b76e04ddb15b29fa734543bbcdf2b0a1 100644 (file)
@@ -165,8 +165,10 @@ static int board_uart_init(void)
 int board_early_init_f(void)
 {
        int err;
+#ifndef CONFIG_OF_MULTI
 #ifdef CONFIG_BOARD_TYPES
        set_board_type();
+#endif
 #endif
        err = board_uart_init();
        if (err) {