From: Dan Carpenter Date: Sat, 4 Feb 2012 13:37:14 +0000 (+0300) Subject: usb: dwc3: make dwc3_get_device_id() return the id X-Git-Tag: MMI-PSA29.97-13-9~17266^2~22^2~35^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=075cd14d2a8d35afc39ad28fc7b968275881266b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git usb: dwc3: make dwc3_get_device_id() return the id We always return zero instead of the id we found. Cc: stable@vger.kernel.org Signed-off-by: Dan Carpenter Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 33d986832013..3fd4e843139e 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -86,7 +86,7 @@ again: id = -ENOMEM; } - return 0; + return id; } EXPORT_SYMBOL_GPL(dwc3_get_device_id);