Skip to contentSkip to conversation

stargate 2, imote 2: remove spi cs gpio direction to avoid clash with driver

PATCH New Jonathan Cameron 1 participant 1 message Mar 7, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stargate 2, imote 2: remove spi cs gpio direction to avoid clash with driver

---

Fix for an issue seen as a failure in gpio allocation within pxa2xx_spi. Not sure when this problem first occured. Looks like a bug that has been there a while and for some reason has recently gained unfortunate symptoms.

Patch is against Linus' tree.

 arch/arm/mach-pxa/imote2.c    |    4 ----
 arch/arm/mach-pxa/stargate2.c |    5 -----
 2 files changed, 0 insertions(+), 9 deletions(-)
arch/arm/mach-pxa/imote2.c +0 -4
index f7f3ba8..f940de0 100644
@@ -574,10 +574,6 @@ static void __init imote2_init(void)
 	pxa_set_btuart_info(NULL);
 	pxa_set_stuart_info(NULL);
 
-	/* SPI chip select directions - all other directions should
-	 * be handled by drivers.*/
-	gpio_direction_output(37, 0);
-
 	platform_add_devices(imote2_devices, ARRAY_SIZE(imote2_devices));
 
 	pxa2xx_set_spi_info(1, &pxa_ssp_master_0_info);
arch/arm/mach-pxa/stargate2.c +0 -5
index 0c4ec35..f6931a1 100644
@@ -779,11 +779,6 @@ static void __init stargate2_init(void)
 	pxa_set_btuart_info(NULL);
 	pxa_set_stuart_info(NULL);
 
-	/* spi chip selects */
-	gpio_direction_output(37, 0);
-	gpio_direction_output(24, 0);
-	gpio_direction_output(39, 0);
-
 	platform_add_devices(ARRAY_AND_SIZE(stargate2_devices));
 
 	pxa2xx_set_spi_info(1, &pxa_ssp_master_0_info);
Signature · 1 line
1.6.3.3