diff options
author | Simon Glass <sjg@chromium.org> | 2015-03-25 12:22:01 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-18 11:11:20 -0600 |
commit | 79b5888729b65e7040d6a964f0015fc2c21b2385 (patch) | |
tree | 3497e7a22e622a32b7f3257682456087b17e409c /common/cmd_reginfo.c | |
parent | cad4291cd053f8eaa404e47ab289a6169c19ae93 (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>
Diffstat (limited to 'common/cmd_reginfo.c')
0 files changed, 0 insertions, 0 deletions