On Fri, Apr 24, 2015 at 10:48 AM, Hans de Goede <hdegoede at redhat.com> wrote: > sunxi_usbc->gpio_vbus = get_vbus_gpio(index); > - if (sunxi_usbc->gpio_vbus != -1) { > + if (sunxi_usbc->gpio_vbus >= 0) { What about using dm_gpio_is_valid() instead? Regards, Fabio Estevam