diff options
author | Tom Rini <trini@konsulko.com> | 2017-05-08 22:14:22 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-12 08:37:24 -0400 |
commit | 9c72fff2682503caba7f545ac5f4edd4bf57859a (patch) | |
tree | 0fa3932ebcc2d00746c0addcbe5386716d8592b8 /board/congatec | |
parent | a2a6a679774bfe335418fa28c2da6b6bb24c2683 (diff) | |
download | u-boot-9c72fff2682503caba7f545ac5f4edd4bf57859a.tar.gz u-boot-9c72fff2682503caba7f545ac5f4edd4bf57859a.tar.xz u-boot-9c72fff2682503caba7f545ac5f4edd4bf57859a.zip |
cgtqmx6eval: Fix unused variable warning
The variable usdhc2_pads is only referenced during SPL builds, add a guard.
Cc: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/congatec')
-rw-r--r-- | board/congatec/cgtqmx6eval/cgtqmx6eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/congatec/cgtqmx6eval/cgtqmx6eval.c b/board/congatec/cgtqmx6eval/cgtqmx6eval.c index a4a602943e..24956a8a94 100644 --- a/board/congatec/cgtqmx6eval/cgtqmx6eval.c +++ b/board/congatec/cgtqmx6eval/cgtqmx6eval.c @@ -71,6 +71,7 @@ static iomux_v3_cfg_t const uart2_pads[] = { IOMUX_PADS(PAD_EIM_D27__UART2_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL)), }; +#ifndef CONFIG_SPL_BUILD static iomux_v3_cfg_t const usdhc2_pads[] = { IOMUX_PADS(PAD_SD2_CLK__SD2_CLK | MUX_PAD_CTRL(USDHC_PAD_CTRL)), IOMUX_PADS(PAD_SD2_CMD__SD2_CMD | MUX_PAD_CTRL(USDHC_PAD_CTRL)), @@ -94,6 +95,7 @@ static iomux_v3_cfg_t const usdhc3_pads[] = { IOMUX_PADS(PAD_SD3_DAT7__SD3_DATA7 | MUX_PAD_CTRL(USDHC_PAD_CTRL)), IOMUX_PADS(PAD_SD3_RST__SD3_RESET | MUX_PAD_CTRL(USDHC_PAD_CTRL)), }; +#endif static iomux_v3_cfg_t const usdhc4_pads[] = { IOMUX_PADS(PAD_SD4_CLK__SD4_CLK | MUX_PAD_CTRL(USDHC_PAD_CTRL)), |