]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
m68knommu: fix fec setup warning for ColdFire 5271 builds
authorGreg Ungerer <gerg@uclinux.org>
Tue, 24 Mar 2015 01:08:22 +0000 (11:08 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Sun, 29 Mar 2015 23:52:24 +0000 (09:52 +1000)
Building for the ColdFire 5271 produces the following warning:

arch/m68k/coldfire/m527x.c: In function ‘m527x_fec_init’:
arch/m68k/coldfire/m527x.c:95:6: warning: unused variable ‘par’

Fix it by moving the definition of par inside the 5271 conditional code.

Reported-by: ertheb <3rth3bnospam@ethe.fr>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/coldfire/m527x.c

index 2ba470735bed0bc20486adaba2546853b0d9c344..c0b3e28f91df91c7177d29487e278ddcc6944233 100644 (file)
@@ -92,7 +92,6 @@ static void __init m527x_uarts_init(void)
 
 static void __init m527x_fec_init(void)
 {
-       u16 par;
        u8 v;
 
        /* Set multi-function pins to ethernet mode for fec0 */
@@ -100,6 +99,8 @@ static void __init m527x_fec_init(void)
        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);