aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2012-02-04 16:37:14 +0300
committerFelipe Balbi <[email protected]>2012-03-02 12:12:02 +0200
commit075cd14d2a8d35afc39ad28fc7b968275881266b (patch)
treec15c0a9cda89d3c0084cdf527c612319e5e79701
parent1d046793958f128dd43d42a4a0dac48bf6914273 (diff)
usb: dwc3: make dwc3_get_device_id() return the id
We always return zero instead of the id we found. Cc: [email protected] Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
-rw-r--r--drivers/usb/dwc3/core.c2
1 files changed, 1 insertions, 1 deletions
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);