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)
committerBenoit Goby <benoit@android.com>
Sat, 20 Nov 2010 04:01:46 +0000 (20:01 -0800)
commitfa43ad045250d900f079ad4f8c6a51014143ae3a
tree45baf1e70bcdbd1d10b766eb4c55e38b9e00a755
parent7e17882ff36d62c066bf47af6299bb2cffea21ed
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