summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91rm9200_devices.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-11-22 21:22:39 +0100
committerTakashi Iwai <tiwai@suse.de>2012-11-22 21:22:39 +0100
commit2ba509a6baac097cc8ae4f9741a09ba7c1c0d916 (patch)
tree08470935de327cb438cc9ec738b0e025c3c0b556 /arch/arm/mach-at91/at91rm9200_devices.c
parentALSA: emu10k1: Add missing ifdef for emu->suspend reference (diff)
parentALSA: snd-usb: properly initialize the sync endpoint (diff)
downloadlinux-2ba509a6baac097cc8ae4f9741a09ba7c1c0d916.tar.xz
linux-2ba509a6baac097cc8ae4f9741a09ba7c1c0d916.zip
Merge branch 'for-linus' into for-next
Diffstat (limited to 'arch/arm/mach-at91/at91rm9200_devices.c')
-rw-r--r--arch/arm/mach-at91/at91rm9200_devices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91rm9200_devices.c b/arch/arm/mach-at91/at91rm9200_devices.c
index 1e122bcd7845..3cee0e6ea7c3 100644
--- a/arch/arm/mach-at91/at91rm9200_devices.c
+++ b/arch/arm/mach-at91/at91rm9200_devices.c
@@ -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);
}