]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcd78d67945d56901398209fed9cd4a176ce1007d
tree305017a75980f4196fb79aef6f4e15b43c1defd7
parentb66b1553fafda6606a51046444cb278a377d4c54
net: fec: fix compile with CONFIG_M5272

Commit bcf3390d2621 ("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: bcf3390d2621 ("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