fec: Fix the build as module
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 20 Mar 2013 08:19:32 +0000 (08:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2013 18:45:30 +0000 (14:45 -0400)
commit9d73adf431e093b23fb4990f1ade11283cb67a98
tree232a4df6ec3ea7d3b579604a26a4a929dd828987
parentda2191e31409d1058dcbed44e8f53e39a40e86b3
fec: Fix the build as module

Since commit ff43da86c69 (NET: FEC: dynamtic check DMA desc buff type) the
following build error happens when CONFIG_FEC=m

ERROR: "fec_ptp_init" [drivers/net/ethernet/freescale/fec.ko] undefined!
ERROR: "fec_ptp_ioctl" [drivers/net/ethernet/freescale/fec.ko] undefined!
ERROR: "fec_ptp_start_cyclecounter" [drivers/net/ethernet/freescale/fec.ko] undefined!

Fix it by exporting the required fec_ptp symbols.

Reported-by: Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_ptp.c