tg3: move init/deinit from open/close to probe/remove
authorIvan Vecera <ivecera@redhat.com>
Thu, 8 Jan 2015 15:13:07 +0000 (16:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jan 2015 20:58:39 +0000 (15:58 -0500)
commit20d14a5d377a6265c2e89986d052f79dff922217
tree69e4e32552e5e7177f42f1c2bfe403cfdef96c52
parent3ec7a176fa81107c20f1693c64873c11a6cd8fa4
tg3: move init/deinit from open/close to probe/remove

Move init and deinit of PTP support from open/close functions
to probe/remove funcs to avoid removing/re-adding of associated PTP
device(s) during ifup/ifdown.

v2: tg3_ptp_init call moved to correct place (thx. Prashant)

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Acked-by: Prashant Sreedharan <prashant@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c