projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21866c3
)
sunxi: musb: Return early on VBUS GPIO error instead of on a positive value
author
Paul Kocialkowski
<contact@paulk.fr>
Sun, 15 Mar 2015 17:27:44 +0000
(18:27 +0100)
committer
Hans de Goede
<hdegoede@redhat.com>
Sat, 21 Mar 2015 12:51:27 +0000
(13:51 +0100)
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>
drivers/usb/musb-new/sunxi.c
patch
|
blob
|
history
diff --git
a/drivers/usb/musb-new/sunxi.c
b/drivers/usb/musb-new/sunxi.c
index 4d8c15a5e0b6e4abf44da0c3e770f29a597680ac..90aaec60d51e2a1dde5da5fd13ba87561baa1681 100644
(file)
--- 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;
}