aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/rndis.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-03-20 15:35:59 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-21 22:55:34 -0400
commitb5556498b60a237cca173dfd60109f3504ce25ca (patch)
tree22e578ff633855aa879d2fa0a9a3a0bbcc330754 /drivers/usb/gadget/rndis.c
parent63e77b391f7230ab87effbcaf7238e9b1e6d7404 (diff)
usbnet: convert rndis driver to use dev_get_stats
dev_get_stats() handles all issues with net_device_ops Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/usb/gadget/rndis.c')
-rw-r--r--drivers/usb/gadget/rndis.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c
index d2860a823680..2b4660e08c4d 100644
--- a/drivers/usb/gadget/rndis.c
+++ b/drivers/usb/gadget/rndis.c
@@ -170,7 +170,7 @@ gen_ndis_query_resp (int configNr, u32 OID, u8 *buf, unsigned buf_len,
170 int i, count; 170 int i, count;
171 rndis_query_cmplt_type *resp; 171 rndis_query_cmplt_type *resp;
172 struct net_device *net; 172 struct net_device *net;
173 struct net_device_stats *stats; 173 const struct net_device_stats *stats;
174 174
175 if (!r) return -ENOMEM; 175 if (!r) return -ENOMEM;
176 resp = (rndis_query_cmplt_type *) r->buf; 176 resp = (rndis_query_cmplt_type *) r->buf;
@@ -193,10 +193,7 @@ gen_ndis_query_resp (int configNr, u32 OID, u8 *buf, unsigned buf_len,
193 resp->InformationBufferOffset = cpu_to_le32 (16); 193 resp->InformationBufferOffset = cpu_to_le32 (16);
194 194
195 net = rndis_per_dev_params[configNr].dev; 195 net = rndis_per_dev_params[configNr].dev;
196 if (net->get_stats) 196 stats = dev_get_stats(net);
197 stats = net->get_stats(net);
198 else
199 stats = NULL;
200 197
201 switch (OID) { 198 switch (OID) {
202 199