usb: fusbh200-hcd: fix error handling in fusbh200_hcd_fusbh200_probe()

Fix to release all resources when fusbh200_setup() fail instead of only
return error.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Wei Yongjun 2013-05-21 10:40:41 +08:00 committed by Greg Kroah-Hartman
parent 5462b0db83
commit 244435b8ee

View File

@ -5864,7 +5864,7 @@ static int fusbh200_hcd_fusbh200_probe(struct platform_device *pdev)
retval = fusbh200_setup(hcd);
if (retval)
return retval;
goto fail_add_hcd;
fusbh200_init(fusbh200);