commit | 3b5ddd38b224498ad93175547cb654ef74219584 | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Tue May 05 11:54:31 2015 +0200 |
committer | Simon Glass <sjg@chromium.org> | Tue May 05 20:58:41 2015 -0600 |
tree | c654b04dbbe16a3b653db1a7f8c00fa84500f5d7 | |
parent | 8679b3a5082c448ad2b86c43e86cfe9340cb321c [diff] |
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>