]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - arch/arm/mach-at91/at91rm9200_devices.c
Merge remote-tracking branch 'asoc/topic/atmel' into asoc-next
[~shefty/rdma-dev.git] / arch / arm / mach-at91 / at91rm9200_devices.c
index f40925a552a1534c18c47ec37e2c98c61cdc2d81..9e76427aaec29a0065963e8633196f598bc9d2bc 100644 (file)
@@ -68,7 +68,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);
        }