]> git.sur5r.net Git - u-boot/commitdiff
MX25: zmx25: GCC4.6 fix build warnings
authorStefano Babic <sbabic@denx.de>
Sun, 6 Nov 2011 00:40:52 +0000 (00:40 +0000)
committerStefano Babic <sbabic@denx.de>
Fri, 11 Nov 2011 10:36:56 +0000 (11:36 +0100)
Fix:
zmx25.c: In function 'board_late_init':
zmx25.c:131:25: warning: variable 'padctl' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefano Babic <sbabic@denx.de>
board/syteco/zmx25/zmx25.c

index a89ee1a086bae29bd82afb96d424acea3d0deb59..c56b195ae1643330d1d355d291aa0812bad8c690 100644 (file)
@@ -128,7 +128,6 @@ int board_late_init(void)
 
 #ifdef CONFIG_FEC_MXC
        struct iomuxc_mux_ctl *muxctl;
-       struct iomuxc_pad_ctl *padctl;
        u32 gpio_mux_mode2 = MX25_PIN_MUX_MODE(2);
        u32 gpio_mux_mode5 = MX25_PIN_MUX_MODE(5);
 
@@ -144,7 +143,6 @@ int board_late_init(void)
         * FEC_RX_ERR: FEC_RX_ERR is ALT 2 mode of pin R2
         */
        muxctl = (struct iomuxc_mux_ctl *)IMX_IOPADMUX_BASE;
-       padctl = (struct iomuxc_pad_ctl *)IMX_IOPADCTL_BASE;
 
        writel(gpio_mux_mode5, &muxctl->pad_upll_bypclk);
        writel(gpio_mux_mode2, &muxctl->pad_uart2_cts);