[patch] usb: dwc3: make dwc3_get_device_id() return the id

Dan Carpenter
2012-02-04T13:37:14Z

We always return zero instead of the id we found.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
I don't have this hardware so it's not tested.

diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 7c9df63..73df745 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);