commit | d146113ae0b8277433517f677e002b58fb6d2a61 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed Mar 25 12:22:01 2015 -0600 |
committer | Simon Glass <sjg@chromium.org> | Sat Apr 18 11:11:20 2015 -0600 |
tree | 3497e7a22e622a32b7f3257682456087b17e409c | |
parent | 729e257a20f444b177e20f37f8acce805a344ee2 [diff] |
dm: usb: Adjust usb_alloc_new_device() to return an error This function returns NULL on error at present. Adjust it so that we can return a real error, as is needed with driver model. Also improve the error handling in its caller, usb_hub_port_connect_change(), and adjust the code order to prepare for driver model. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de>