summaryrefslogtreecommitdiff
path: root/include/lattice.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-25 12:22:01 -0600
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:20 -0600
commit79b5888729b65e7040d6a964f0015fc2c21b2385 (patch)
tree3497e7a22e622a32b7f3257682456087b17e409c /include/lattice.h
parentcad4291cd053f8eaa404e47ab289a6169c19ae93 (diff)
downloadu-boot-imx-79b5888729b65e7040d6a964f0015fc2c21b2385.zip
u-boot-imx-79b5888729b65e7040d6a964f0015fc2c21b2385.tar.gz
u-boot-imx-79b5888729b65e7040d6a964f0015fc2c21b2385.tar.bz2
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 'include/lattice.h')
0 files changed, 0 insertions, 0 deletions