Commit 8a440b09 authored by Paul Kocialkowski's avatar Paul Kocialkowski Committed by Hans de Goede

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: default avatarPaul Kocialkowski <>
Acked-by: default avatarHans de Goede <>
Signed-off-by: default avatarHans de Goede <>
parent 21866c34
......@@ -261,7 +261,7 @@ static int sunxi_musb_init(struct musb *musb)
err = gpio_get_value(vbus_det);
if (err) {
if (err < 0) {
return -EIO;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment