fec: Do not access unexisting register in Coldfire
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 31 Mar 2016 15:05:17 +0000 (12:05 -0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Mar 2016 20:04:05 +0000 (16:04 -0400)
commit32867fcc0ef9e56939d5200ad983801bbfd581ad
treefcc35d6fa50f5d15306a1eee995615bc4604d3cb
parent9bd9ddb7f89edae241d2da78e3119f226b9b0cf6
fec: Do not access unexisting register in Coldfire

Commit 55cd48c821de ("net: fec: stop the "rcv is not +last, " error
messages") introduces a write to a register that does not exist in
Coldfire.

Move the FEC_FTRL register access inside the FEC_QUIRK_HAS_RACC 'if' block,
so that we guarantee it will not be used on Coldfire CPUs.

Reported-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c