summaryrefslogtreecommitdiff
path: root/arch/avr32
diff options
context:
space:
mode:
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2009-03-24 17:45:21 +0300
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2009-03-26 16:59:01 +0300
commit9477ab2b2ae098423af2ed4fb1f7b864abfc14fc (patch)
tree314d3f54a33e6e754aded48b3e02230f66b63648 /arch/avr32
parent472a6786b071ea88144e09eeb9b2a77549d98e75 (diff)
downloadlinux-9477ab2b2ae098423af2ed4fb1f7b864abfc14fc.tar.xz
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>
Diffstat (limited to 'arch/avr32')
-rw-r--r--arch/avr32/mach-at32ap/at32ap700x.c2
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)
if (platform_device_add_data(pdev, data, sizeof(usba_data)))
goto out_free_pdev;
- if (data->vbus_pin >= 0)
+ if (gpio_is_valid(data->vbus_pin))
at32_select_gpio(data->vbus_pin, 0);
usba0_pclk.dev = &pdev->dev;