From: Paul Bolle Date: Sun, 9 Oct 2011 10:12:16 +0000 (+0200) Subject: Bluetooth: btusb: also be quiet when suspending X-Git-Tag: v3.3-rc1~182^2~545^2~134^2~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a9b80e2cd993f77d6d068470a4fd77fdfae44ab;p=pandora-kernel.git Bluetooth: btusb: also be quiet when suspending usb_submit_urb() returns -ENODEV when a usb device is disconnected. In commit 4935f1c164ac528dff3538f97953b385ba500710 ("Bluetooth: btusb: be quiet on device disconnect") I stopped treating that return as an error in the three btusb_*_complete() functions. It turns out btusb_send_frame() generates a similar error if the system is suspended while the bluetooth usb device is enabled. The sensible thing to do here seems to be to treat -ENODEV (and -EPERM) just like the btusb_*_complete() functions now do. Signed-off-by: Paul Bolle Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed