diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2015-03-15 18:27:44 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-03-21 13:51:27 +0100 |
commit | 8a440b09f21ab8ec72b3aedf4d6f3f53494d7149 (patch) | |
tree | 009e637a7e87614ae3625957d96b5852652400b1 /drivers/usb/musb-new/sunxi.c | |
parent | 21866c34a1b4098a8868c9250daf01baf84c2397 (diff) | |
download | u-boot-imx-8a440b09f21ab8ec72b3aedf4d6f3f53494d7149.zip u-boot-imx-8a440b09f21ab8ec72b3aedf4d6f3f53494d7149.tar.gz u-boot-imx-8a440b09f21ab8ec72b3aedf4d6f3f53494d7149.tar.bz2 |
sunxi: musb: Return early on VBUS GPIO error instead of on a positive value
This allows printing the error message when VBUS is detected, as it would with
AXP VBUS detect.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/usb/musb-new/sunxi.c')
-rw-r--r-- | drivers/usb/musb-new/sunxi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index 4d8c15a..90aaec6 100644 --- a/drivers/usb/musb-new/sunxi.c +++ b/drivers/usb/musb-new/sunxi.c @@ -261,7 +261,7 @@ static int sunxi_musb_init(struct musb *musb) } err = gpio_get_value(vbus_det); - if (err) { + if (err < 0) { gpio_free(vbus_det); return -EIO; } |