]> git.baikalelectronics.ru Git - kernel.git/commit
net: eth: cpsw: Use net_device_stats from struct net_device
authorTobias Klauser <tklauser@distanz.ch>
Mon, 10 Mar 2014 12:12:23 +0000 (13:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Mar 2014 01:53:01 +0000 (21:53 -0400)
commit76e4972cc80e9aa4b03f1ccecc8bc785c63f86eb
tree42e458d4c673350dc9ebee4d1e17f2ce776368b0
parent88b46be0f94141c942c5f3f607b6238caf6c7e2a
net: eth: cpsw: Use net_device_stats from struct net_device

Instead of using an own copy of struct net_device_stats in struct
cpsw_priv, use stats from struct net_device. Also remove the thus
unnecessary .ndo_get_stats function, as it just returns dev->stats,
which is the default.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c