net: thunderx: Fix for crash while BGX teardown
authorThanneeru Srinivasulu <tsrinivasulu@caviumnetworks.com>
Wed, 29 Jul 2015 13:49:46 +0000 (16:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2015 06:52:32 +0000 (23:52 -0700)
commit60f83c898776c363ef8ebb66f14cbc748c1df1e8
treeee27afe8ce9af746388306f50e060c8018fe0e21
parent4adf4351145e65dd98407299496ef00d82430b48
net: thunderx: Fix for crash while BGX teardown

Cortina phy does not have kernel driver and we don't attach
device with phy layer for intefaces like XFI, XLAUI etc,
Hence check for interface type before calling disconnect.

Signed-off-by: Thanneeru Srinivasulu <tsrinivasulu@caviumnetworks.com>
Signed-off-by: Aleksey Makarov <aleksey.makarov@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c