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)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:03:29 +0000 (12:03 -0800)
commitbf429b27f8f9aaf9d63d8be52d46af3b2b219295
treefc7ed8c9bb840c3a652cb60343441baef60fc4a0
parent7c6c4ed815ac2683f45a00c630b7465c7a9c6606
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