dm: usb: Make usb_get_bus easier to use for callers
authorHans de Goede <hdegoede@redhat.com>
Tue, 5 May 2015 09:54:31 +0000 (11:54 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 6 May 2015 02:58:41 +0000 (20:58 -0600)
commitf78a5c0774da9ca1702df453f974f022580552f4
treec654b04dbbe16a3b653db1a7f8c00fa84500f5d7
parent134692af138243fca1037fc737651281701a9ab3
dm: usb: Make usb_get_bus easier to use for callers

Make usb_get_bus easier to use for callers, by directly returning the bus
rather then returning it via a pass-by-ref argument.

This also removes the error checking from the current callers, as
we already have an assert() for bus not being NULL in usb_get_bus().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/usb-uclass.c
include/usb.h