net: fec: fix build error in no MXC platform
authorFrank Li <Frank.Li@freescale.com>
Sun, 3 Mar 2013 20:52:38 +0000 (20:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2013 19:12:07 +0000 (14:12 -0500)
commitacac8406cd523a3afbd6c6db31e9f763644bf6ba
tree1987d841ddfb4f630515c64c4666e7bf03f76674
parent3e8b0ac3e41e3c882222a5522d5df7212438ab51
net: fec: fix build error in no MXC platform

build error cause by
Commit ff43da86c69d76a726ffe7d1666148960dc1d108
("NET: FEC: dynamtic check DMA desc buff type")

drivers/net/ethernet/freescale/fec.c: In function ‘fec_enet_get_nextdesc’:
drivers/net/ethernet/freescale/fec.c:215:18: error: invalid use of undefined type ‘struct bufdesc_ex’
drivers/net/ethernet/freescale/fec.c: In function ‘fec_enet_get_prevdesc’:
drivers/net/ethernet/freescale/fec.c:224:18: error: invalid use of undefined type ‘struct bufdesc_ex’
drivers/net/ethernet/freescale/fec.c: In function ‘fec_enet_start_xmit’:
drivers/net/ethernet/freescale/fec.c:286:37: error: arithmetic on pointer to an incomplete type
drivers/net/ethernet/freescale/fec.c:287:13: error: arithmetic on pointer to an incomplete type
drivers/net/ethernet/freescale/fec.c:324:7: error: dereferencing pointer to incomplete type etc....

Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec.h