]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: imx: wandboard: fix compile error if CONFIG_VIDEO is deactivated
authorSven Ebenfeld <sven.ebenfeld@gmail.com>
Fri, 25 Nov 2016 20:42:53 +0000 (21:42 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 29 Nov 2016 15:34:56 +0000 (16:34 +0100)
commit36c0627ba5efd602d9ca8ebaae06f30d1890a41a
tree7f17c868b5773facce6b9355aaeb8a1427c6ff9e
parentde19773535d4eb4e698aec4ab0cdfe86d51a4696
arm: imx: wandboard: fix compile error if CONFIG_VIDEO is deactivated

When I tried to deactivate VIDEO support for the Wandboard, it still
tried to initialize the Framebuffer and so on. That is the reason for
the added ifdefs. CONFIG_VIDEO is enabled in the configuration as default
and therefore nothing changes for the default user.

The structs mx6dl_i2c2_pad_info and mx6q_i2c2_pad_info are only available
when CONFIG_IPUV3 are set and should not be tried to access, when that
define is not defined.

Signed-off-by: Sven Ebenfeld <sven.ebenfeld@gmail.com>
board/wandboard/wandboard.c
include/configs/wandboard.h