usb: cypress_m8 init error path fix
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Fri, 17 Nov 2006 16:49:22 +0000 (17:49 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Dec 2006 22:23:37 +0000 (14:23 -0800)
commit2e46b74852446404d64b0b00ce872724bfa627ab
tree8594d2e2f42eb40c3eac30bb7fe45adeb89cf045
parent93f1a47c4af34c4ee014b3d2aae70089b3b69f72
usb: cypress_m8 init error path fix

If at some point cypress_init() fails deregister
only the resources that were registered until that point.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/cypress_m8.c