net: netcp: ethss: fix errors in ethtool ops
authorWingMan Kwok <w-kwok2@ti.com>
Mon, 19 Dec 2016 22:55:56 +0000 (17:55 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Dec 2016 19:07:17 +0000 (14:07 -0500)
commite9838ef2d6f3f3ccb058514d4ac03a6f6155ecc2
tree71e7736c1c9d39dec43814c94797d5f0db036f99
parent04fddde37642dd270ecb430b879f311536cfd6a5
net: netcp: ethss: fix errors in ethtool ops

In ethtool ops, it needs to retrieve the corresponding
ethss module (gbe or xgbe) from the net_device structure.
Prior to this patch, the retrieving procedure only
checks for the gbe module.  This patch fixes the issue
by checking the xgbe module if the net_device structure
does not correspond to the gbe module.

Signed-off-by: WingMan Kwok <w-kwok2@ti.com>
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_ethss.c