diff options
author | Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> | 2009-03-24 15:45:21 +0100 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2009-03-26 14:59:01 +0100 |
commit | 9477ab2b2ae098423af2ed4fb1f7b864abfc14fc (patch) | |
tree | 314d3f54a33e6e754aded48b3e02230f66b63648 /arch/avr32/mach-at32ap | |
parent | 472a6786b071ea88144e09eeb9b2a77549d98e75 (diff) | |
download | op-kernel-dev-9477ab2b2ae098423af2ed4fb1f7b864abfc14fc.zip op-kernel-dev-9477ab2b2ae098423af2ed4fb1f7b864abfc14fc.tar.gz |
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/mach-at32ap')
-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 3fbfd1e..402cae8 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; |