diff options
Diffstat (limited to 'arch/arm/mach-at91/at91rm9200_devices.c')
-rw-r--r-- | arch/arm/mach-at91/at91rm9200_devices.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91rm9200_devices.c b/arch/arm/mach-at91/at91rm9200_devices.c index 7227755ffec6..01d8bbd1468b 100644 --- a/arch/arm/mach-at91/at91rm9200_devices.c +++ b/arch/arm/mach-at91/at91rm9200_devices.c | |||
@@ -14,11 +14,11 @@ | |||
14 | #include <asm/mach/map.h> | 14 | #include <asm/mach/map.h> |
15 | 15 | ||
16 | #include <linux/dma-mapping.h> | 16 | #include <linux/dma-mapping.h> |
17 | #include <linux/gpio.h> | ||
17 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
18 | #include <linux/i2c-gpio.h> | 19 | #include <linux/i2c-gpio.h> |
19 | 20 | ||
20 | #include <mach/board.h> | 21 | #include <mach/board.h> |
21 | #include <mach/gpio.h> | ||
22 | #include <mach/at91rm9200.h> | 22 | #include <mach/at91rm9200.h> |
23 | #include <mach/at91rm9200_mc.h> | 23 | #include <mach/at91rm9200_mc.h> |
24 | 24 | ||
@@ -60,9 +60,17 @@ static struct platform_device at91rm9200_usbh_device = { | |||
60 | 60 | ||
61 | void __init at91_add_device_usbh(struct at91_usbh_data *data) | 61 | void __init at91_add_device_usbh(struct at91_usbh_data *data) |
62 | { | 62 | { |
63 | int i; | ||
64 | |||
63 | if (!data) | 65 | if (!data) |
64 | return; | 66 | return; |
65 | 67 | ||
68 | /* Enable overcurrent notification */ | ||
69 | for (i = 0; i < data->ports; i++) { | ||
70 | if (data->overcurrent_pin[i]) | ||
71 | at91_set_gpio_input(data->overcurrent_pin[i], 1); | ||
72 | } | ||
73 | |||
66 | usbh_data = *data; | 74 | usbh_data = *data; |
67 | platform_device_register(&at91rm9200_usbh_device); | 75 | platform_device_register(&at91rm9200_usbh_device); |
68 | } | 76 | } |