]> git.baikalelectronics.ru Git - uboot.git/commit
arm: exynos: odroid: Fix build if BOARD_TYPES are not set
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 6 Mar 2019 09:23:09 +0000 (10:23 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 11 Mar 2019 06:53:50 +0000 (15:53 +0900)
commit7b35de1cb5b23750f5e1f91dd1e39901d23eb6af
tree6b462cb53a4d4185c69095d60364712ffd29705a
parent54ba74de1095883f8ff66d58c796d166cc8d1bca
arm: exynos: odroid: Fix build if BOARD_TYPES are not set

CONFIG_BOARD_TYPES is necessary for Odroid X/X2/U3 boards to detect
proper revision.  However building should succeed even without it.
While moving code around, document also the reference clock selection.

This fixes the build error without CONFIG_BOARD_TYPES:

    board/samsung/odroid/odroid.c: In function 'board_usb_init':
    board/samsung/odroid/odroid.c:473:8: error: 'gd_t' {aka 'volatile struct global_data'} has no member named 'board_type'
      if (gd->board_type == ODROID_TYPE_U3)
            ^~

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/odroid/odroid.c