gianfar: Use mpc85xx support for errata detection
authorClaudiu Manoil <claudiu.manoil@freescale.com>
Wed, 9 Oct 2013 17:20:41 +0000 (20:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Oct 2013 18:02:02 +0000 (14:02 -0400)
commit2969b1f7259179b6810b02aa6770c8765d9674ad
tree6df80f34ad3ec94b7cab26f4f39dd2aea97d428e
parentad3660c242adf34a3f598dd8ba8c8d59811788f3
gianfar: Use mpc85xx support for errata detection

Use the macros and defines from mpc85xx.h to simplify
and prevent errors in identifying a mpc85xx based SoC
for errata detection.
This should help enabling (and identifying) workarounds
for various mpc85xx based chips and revisions.
For instance, express MPC8548 Rev.2 as:
(SVR_SOC_VER(svr) == SVR_8548) && (SVR_REV(svr) == 0x20)
instead of:
(pvr == 0x80210020 && mod == 0x8030 && rev == 0x0020)

Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar.c