usb: gadget: rndis: don't use dev_get_stats
authorBenoit Goby <benoit@android.com>
Wed, 17 Nov 2010 22:27:51 +0000 (14:27 -0800)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:11 +0000 (09:09 -0700)
commitffdab0c0c40bab6de78b1952bb07aed221994b73
treeec6b6aded00bd902b624ce1ca8c7cda5f565aea7
parent16c08c28717ba564ff2306f13803788a46d9159f
usb: gadget: rndis: don't use dev_get_stats

Since 2.6.36, spin_lock_bh has been added to dev_txq_stats_fold. So
dev_get_stats cannot be called from atomic context.

Replaced it by netdev_stats_to_stats64 to copy the stats directly. This
will work if the device driver does not need txq tx stats folding.

http://lkml.org/lkml/2010/9/20/250

Change-Id: I715b00892beda56cc369139d6e2bdc9efb6bfe79
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/usb/gadget/rndis.c