]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - arch/arm/mach-at91/at91sam9263_devices.c
Merge remote-tracking branch 'asoc/topic/atmel' into asoc-next
[~shefty/rdma-dev.git] / arch / arm / mach-at91 / at91sam9263_devices.c
index 025c9704bfe6c8763e1ec8fc119cacf885270a87..8215839f2d540a46db98a83eeddf4228122c75b8 100644 (file)
@@ -78,7 +78,7 @@ void __init at91_add_device_usbh(struct at91_usbh_data *data)
 
        /* Enable overcurrent notification */
        for (i = 0; i < data->ports; i++) {
-               if (data->overcurrent_pin[i])
+               if (gpio_is_valid(data->overcurrent_pin[i]))
                        at91_set_gpio_input(data->overcurrent_pin[i], 1);
        }