]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial generic resume function fix
authorOliver Neukum <oliver@neukum.org>
Fri, 6 Feb 2009 14:01:54 +0000 (15:01 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Mar 2009 23:20:29 +0000 (16:20 -0700)
commit398c20acd9c4632416e4e57ece05ae62994de30d
treeb672bc3e307600b447e43a05f12392b7c5fd38db
parentc20294f5eed1bdfb97163b49f55d2b838ad1eab3
USB: serial generic resume function fix

This removes an unnecessary check for autoresume from the generic
resume method. The check has been obsoleted by the now delayed
increase of the usage counter which makes the error this check prevented
impossible. This change allows drivers which only use the bulk read URB
the use of the generic method even if they support autosuspend.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/generic.c