USB: fix USBTMC get_capabilities success handling
commitd0a38365d9585bf3fb71f7c57fd532441a14f3e8
authorGergely Imreh <imrehg@gmail.com>
Mon, 7 Sep 2009 02:47:01 +0000 (7 10:47 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:39 +0000 (23 06:46 -0700)
treed15d498bbfb4071f1fc6a2f1c92fcb162340a6b2
parent1e5ea5e32043094d96ca1e501110c1fbb631f693
USB: fix USBTMC get_capabilities success handling

In order:
Add reference to relevant section of USBTMC usb488 subclass specs.
Print debug output of capabilities only when it was retrieved successfully.
Clear return value on success, otherwise driver always reports failure.

Signed-off-by: Gergely Imreh <imrehg@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/usbtmc.c