From: Greg Ungerer <[email protected]>

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 my moving the definition of par inside the 5271 conditional code.

Reported-by: ertheb <[email protected]>
Signed-off-by: Greg Ungerer <[email protected]>
---
 arch/m68k/coldfire/m527x.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/m68k/coldfire/m527x.c b/arch/m68k/coldfire/m527x.c
index 2ba4707..c0b3e28 100644
--- a/arch/m68k/coldfire/m527x.c
+++ b/arch/m68k/coldfire/m527x.c
@@ -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);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to