net: fec: fix compile with CONFIG_M5272
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>
Tue, 6 Dec 2016 06:26:53 +0000 (09:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2016 16:40:15 +0000 (11:40 -0500)
commitf85de6666347c974cdf97b1026180995d912d7d0
tree305017a75980f4196fb79aef6f4e15b43c1defd7
parentd14584d91976c42c7178164665c4959495740939
net: fec: fix compile with CONFIG_M5272

Commit 80cca775cdc4 ("net: fec: cache statistics while device is down")
introduced unconditional statistics-related actions.

However, when driver is compiled with CONFIG_M5272, staticsics-related
definitions do not exist, which results into build errors.

Fix that by adding explicit handling of !defined(CONFIG_M5272) case.

Fixes: 80cca775cdc4 ("net: fec: cache statistics while device is down")
Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c