]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/usb/musb-new/sunxi.c
sunxi: musb: Stop treating not having a vbus-det gpio as an error
[karo-tx-uboot.git] / drivers / usb / musb-new / sunxi.c
index 3542326238d59a1a5186f3b3aeb4e6549506d740..3a29b18e5f4cde07505975938d75edafe462b7c5 100644 (file)
@@ -208,7 +208,7 @@ static int sunxi_musb_enable(struct musb *musb)
 
        if (is_host_enabled(musb)) {
                ret = sunxi_usb_phy_vbus_detect(0);
-               if (ret) {
+               if (ret == 1) {
                        printf("A charger is plugged into the OTG: ");
                        return -ENODEV;
                }