diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2015-07-23 17:06:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-27 07:51:53 +0300 |
commit | 32cba57ba74be58589aeb4cb6496183e46a5e3e5 (patch) | |
tree | cde848eeb941a9b7dc2743942f2ce565ddf44faa /drivers/net/ethernet/freescale/fec.h | |
parent | c0a1a0a698bb0f90ec4719de34f37715abfad8a5 (diff) | |
download | linux-32cba57ba74be58589aeb4cb6496183e46a5e3e5.tar.xz |
net: fec: introduce fec_ptp_stop and use in probe fail path
This function frees resources and cancels delayed work item that
have been initialized in fec_ptp_init().
Use this to do proper error handling if something goes wrong in
probe function after fec_ptp_init has been called.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/fec.h')
-rw-r--r-- | drivers/net/ethernet/freescale/fec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h index 1eee73cccdf5..99d33e2d35e6 100644 --- a/drivers/net/ethernet/freescale/fec.h +++ b/drivers/net/ethernet/freescale/fec.h @@ -562,6 +562,7 @@ struct fec_enet_private { }; void fec_ptp_init(struct platform_device *pdev); +void fec_ptp_stop(struct platform_device *pdev); void fec_ptp_start_cyclecounter(struct net_device *ndev); int fec_ptp_set(struct net_device *ndev, struct ifreq *ifr); int fec_ptp_get(struct net_device *ndev, struct ifreq *ifr); |