ARM: mxs: Remove unused variable warning
Subsystems (2)
PATCH 1/1 ARM: mxs: Remove unused variable warning
Shuffle the macros around a little to remove the following warning when building for i.MX28:
arch/arm/cpu/arm926ejs/mxs/spl_boot.c:44:26: warning: ?iomux_boot? defined but not used [-Wunused-const-variable=]
static const iomux_cfg_t iomux_boot[] = {
^~~~~~~~~~Signed-off-by Marek Vasut <[email protected]>
Cc Tom Rini <[email protected]>
Cc Stefano Babic <[email protected]>
--- arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/cpu/arm926ejs/mxs/spl_boot.c +2 -2
@@ -40,17 +40,17 @@ void early_delay(int delay) ; } +#if defined(CONFIG_MX23 )#define MUX_CONFIG_BOOTMODE_PAD (MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_NOPULL)static const iomux_cfg_t iomux_boot[] = { -#if defined(CONFIG_MX23)MX23_PAD_LCD_D00__GPIO_1_0 |MUX_CONFIG_BOOTMODE_PAD ,MX23_PAD_LCD_D01__GPIO_1_1 |MUX_CONFIG_BOOTMODE_PAD ,MX23_PAD_LCD_D02__GPIO_1_2 |MUX_CONFIG_BOOTMODE_PAD ,MX23_PAD_LCD_D03__GPIO_1_3 |MUX_CONFIG_BOOTMODE_PAD ,MX23_PAD_LCD_D04__GPIO_1_4 |MUX_CONFIG_BOOTMODE_PAD ,MX23_PAD_LCD_D05__GPIO_1_5 |MUX_CONFIG_BOOTMODE_PAD , -#endif }; +#endif static uint8_t mxs_get_bootmode_index (void ) {
Signature · 1 line
2.10.2
Quoted 10 lines · Marek Vasut
Shuffle the macros around a little to remove the following warning when building for i.MX28:
arch/arm/cpu/arm926ejs/mxs/spl_boot.c:44:26: warning: ?iomux_boot? defined but not used [-Wunused-const-variable=]static const iomux_cfg_t iomux_boot[] = { ^~~~~~~~~~Signed-off-by Marek Vasut <[email protected]>Cc Tom Rini <[email protected]>Cc Stefano Babic <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161219/1078a16c/attachment.sig>