[U-Boot] [PATCH v2 13/80] dm: usb: Adjust usb_alloc_new_device() to return an error

Simon Glass sjg at chromium.org
Tue Apr 7 20:40:49 CEST 2015


On 25 March 2015 at 12:22, Simon Glass <sjg at chromium.org> wrote:
> 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 at chromium.org>
> ---
>
> Changes in v2: None
>
>  common/usb.c     | 17 ++++++++---------
>  common/usb_hub.c | 41 ++++++++++++++++++++++++++---------------
>  include/usb.h    | 20 ++++++++++++++++++--
>  3 files changed, 52 insertions(+), 26 deletions(-)

Applied to u-boot-dm/next.


More information about the U-Boot mailing list