Bluetooth: Fix log spamming in btusb due to autosuspend
authorStefan Seyfried <seife+kernel@b1-systems.com>
Tue, 30 Nov 2010 20:49:08 +0000 (21:49 +0100)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 1 Dec 2010 17:46:42 +0000 (15:46 -0200)
commit61faddf661a65a179751dc9fd209cb694d9a28af
treeeab3c6255b905f801e77d470e51f489fe2c29b2b
parentc89ad7372232b69fd37edf90d6f5d2a8d6381214
Bluetooth: Fix log spamming in btusb due to autosuspend

If a device is autosuspended an inability to resubmit URBs is
to be expected. Check the error code and only log real errors.
(Now that autosuspend is default enabled for btusb, those log
messages were happening all the time e.g. with a BT mouse)

Signed-off-by: Stefan Seyfried <seife+kernel@b1-systems.com>
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
drivers/bluetooth/btusb.c