Hi,

Very tiny change to avoid one warning with MCF5271. :-)

static void __init m527x_fec_init(void)
{
-       u16 par;
        u8 v;

        /* Set multi-function pins to ethernet mode for fec0 */
#if defined(CONFIG_M5271)
        v = readb(MCFGPIO_PAR_FECI2C);
        writeb(v | 0xf0, MCFGPIO_PAR_FECI2C);
#else
+       u16 par;
        par = readw(MCFGPIO_PAR_FECI2C);
        writew(par | 0xf00, MCFGPIO_PAR_FECI2C);
        v = readb(MCFGPIO_PAR_FEC0HL);
        writeb(v | 0xc0, MCFGPIO_PAR_FEC0HL);

        /* Set multi-function pins to ethernet mode for fec1 */
        par = readw(MCFGPIO_PAR_FECI2C);
        writew(par | 0xa0, MCFGPIO_PAR_FECI2C);
        v = readb(MCFGPIO_PAR_FEC1HL);
        writeb(v | 0xc0, MCFGPIO_PAR_FEC1HL);
#endif
}

ertheb.
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to