Skip to content

Commit

Permalink
m68knommu: fix fec setup warning for ColdFire 5271 builds
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Ungerer committed Mar 29, 2015
1 parent a630ec1 commit 6e42061
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/m68k/coldfire/m527x.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,15 @@ 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 */
#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);
Expand Down

0 comments on commit 6e42061

Please sign in to comment.