diff options
author | Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> | 2009-03-24 10:45:21 -0400 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2009-03-26 09:59:01 -0400 |
commit | 9477ab2b2ae098423af2ed4fb1f7b864abfc14fc (patch) | |
tree | 314d3f54a33e6e754aded48b3e02230f66b63648 | |
parent | 472a6786b071ea88144e09eeb9b2a77549d98e75 (diff) |
avr32: use gpio_is_valid() to check USBA vbus_pin I/O line
This patch will use gpio_is_valid() to check the vbus_pin I/O line.
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
-rw-r--r-- | arch/avr32/mach-at32ap/at32ap700x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c index 3fbfd1e32a9e..402cae8f9205 100644 --- a/arch/avr32/mach-at32ap/at32ap700x.c +++ b/arch/avr32/mach-at32ap/at32ap700x.c | |||
@@ -1753,7 +1753,7 @@ at32_add_device_usba(unsigned int id, struct usba_platform_data *data) | |||
1753 | if (platform_device_add_data(pdev, data, sizeof(usba_data))) | 1753 | if (platform_device_add_data(pdev, data, sizeof(usba_data))) |
1754 | goto out_free_pdev; | 1754 | goto out_free_pdev; |
1755 | 1755 | ||
1756 | if (data->vbus_pin >= 0) | 1756 | if (gpio_is_valid(data->vbus_pin)) |
1757 | at32_select_gpio(data->vbus_pin, 0); | 1757 | at32_select_gpio(data->vbus_pin, 0); |
1758 | 1758 | ||
1759 | usba0_pclk.dev = &pdev->dev; | 1759 | usba0_pclk.dev = &pdev->dev; |