aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2008-11-28 18:52:43 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-28 18:52:43 -0500
commitd8e8034dcdef8c8fa94a14c3b555c09e065e742f (patch)
treeffa5e2dfb8ea234a5555de8339f4f32d9357619c /drivers
parent9fd428761adbd5fbd7e23c312955eec1db8ace7a (diff)
bnx2: use net_device_stats nowadays available in net_device
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/bnx2.c2
-rw-r--r--drivers/net/bnx2.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 8f1cd7cfa09d..182f2410c23d 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -6155,7 +6155,7 @@ bnx2_get_stats(struct net_device *dev)
6155{ 6155{
6156 struct bnx2 *bp = netdev_priv(dev); 6156 struct bnx2 *bp = netdev_priv(dev);
6157 struct statistics_block *stats_blk = bp->stats_blk; 6157 struct statistics_block *stats_blk = bp->stats_blk;
6158 struct net_device_stats *net_stats = &bp->net_stats; 6158 struct net_device_stats *net_stats = &dev->stats;
6159 6159
6160 if (bp->stats_blk == NULL) { 6160 if (bp->stats_blk == NULL) {
6161 return net_stats; 6161 return net_stats;
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index 34ca47812af4..0763108fa1c5 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -6872,8 +6872,6 @@ struct bnx2 {
6872 int pm_cap; 6872 int pm_cap;
6873 int pcix_cap; 6873 int pcix_cap;
6874 6874
6875 struct net_device_stats net_stats;
6876
6877 struct flash_spec *flash_info; 6875 struct flash_spec *flash_info;
6878 u32 flash_size; 6876 u32 flash_size;
6879 6877