merge of '7393275c6ccce67cadeb49d4afb3459e56edf8a9'
[vuplus_openembedded] / packages / linux / linux-rp-2.6.24 / tosa / 0014-tosa_udc_use_gpio_vbus.patch.patch
1 From 932ff38b17c7847c43e2bad01b510b64c27f9810 Mon Sep 17 00:00:00 2001
2 From: Dmitry Baryshkov <dbaryshkov@gmail.com>
3 Date: Wed, 9 Jan 2008 01:27:59 +0300
4 Subject: [PATCH 14/64] tosa_udc_use_gpio_vbus.patch
5
6 Use gpio_vbus instead of udc_is_connected for udc on tosa.
7
8 Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
9 Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
10 ---
11  arch/arm/mach-pxa/tosa.c |    9 ++-------
12  1 files changed, 2 insertions(+), 7 deletions(-)
13
14 diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c
15 index e7e0f52..5268e94 100644
16 --- a/arch/arm/mach-pxa/tosa.c
17 +++ b/arch/arm/mach-pxa/tosa.c
18 @@ -159,15 +159,10 @@ static void tosa_udc_command(int cmd)
19         }
20  }
21  
22 -static int tosa_udc_is_connected(void)
23 -{
24 -       return ((GPLR(TOSA_GPIO_USB_IN) & GPIO_bit(TOSA_GPIO_USB_IN)) == 0);
25 -}
26 -
27 -
28  static struct pxa2xx_udc_mach_info udc_info __initdata = {
29         .udc_command            = tosa_udc_command,
30 -       .udc_is_connected       = tosa_udc_is_connected,
31 +       .gpio_vbus              = TOSA_GPIO_USB_IN,
32 +       .gpio_vbus_inverted     = 1,
33  };
34  
35  /*
36 -- 
37 1.5.3.8
38