net: fec: introduce fec_ptp_stop and use in probe fail path
authorLucas Stach <l.stach@pengutronix.de>
Thu, 23 Jul 2015 14:06:20 +0000 (16:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 04:51:53 +0000 (21:51 -0700)
commit32cba57ba74be58589aeb4cb6496183e46a5e3e5
treecde848eeb941a9b7dc2743942f2ce565ddf44faa
parentc0a1a0a698bb0f90ec4719de34f37715abfad8a5
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>
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c
drivers/net/ethernet/freescale/fec_ptp.c