r8152: replace spin_lock_irqsave and spin_unlock_irqrestore
commit2685d4106316e9033f73e631b3bbb9e385123c0a
authorhayeswang <hayeswang@realtek.com>
Fri, 7 Mar 2014 03:04:34 +0000 (7 11:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Mar 2014 21:24:28 +0000 (7 16:24 -0500)
tree8b3cc8d0604b5490d7c00f836727daffc1cbba2a
parent91bd66e4c8e0042fdea945c5e455363f1d44959a
r8152: replace spin_lock_irqsave and spin_unlock_irqrestore

Use spin_lock and spin_unlock in interrupt context.

The ndo_start_xmit would not be called in interrupt context, so
replace the relative spin_lock_irqsave and spin_unlock_irqrestore
with spin_lock_bh and spin_unlock_bh.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c