usb: dwc2: pci: Fix an error code in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 18 Oct 2018 07:36:47 +0000 (10:36 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 14 Nov 2018 09:07:12 +0000 (11:07 +0200)
commit3c135e8900199e3b9375c1eff808cceba2ee37de
tree2c45bd8bb97f6e2f7b5ed1fb791d8762db0f0903
parent7b412b04a0c7000293008231ce8413056abb1982
usb: dwc2: pci: Fix an error code in probe

We added some error handling to this function but forgot to set the
error code on this path.

Fixes: ecd29dabb2ba ("usb: dwc2: pci: Handle error cleanup in probe")
Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/pci.c