ARM: shmobile: use common extra gpio functions on armadillo800eva
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 25 Jun 2012 10:41:45 +0000 (03:41 -0700)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 30 Jun 2012 13:24:53 +0000 (15:24 +0200)
This patch switch over to use common extra gpio method,
and reduced a waste of code on SH-ARM.

But these functions should be replaced by correct
gpio function in the future.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
arch/arm/mach-shmobile/board-armadillo800eva.c

index 3066fa7e53743ca53d0993806015e85a714b30c3..5f8f571665a027b4a84808beb058787ff33fb841 100644 (file)
  * # amixer set "Headphone" 50
  */
 
-/*
- * FIXME !!
- *
- * gpio_no_direction
- *
- * current gpio frame work doesn't have
- * the method to control only pull up/down/free.
- * this function should be replaced by correct gpio function
- */
-static void __init gpio_no_direction(u32 addr)
-{
-       __raw_writeb(0x00, addr);
-}
-
 /*
  * USB function
  *
@@ -1087,8 +1073,8 @@ static void __init eva_init(void)
 
        gpio_request(GPIO_PORT7, NULL);
        gpio_request(GPIO_PORT8, NULL);
-       gpio_no_direction(GPIO_PORT7CR); /* FSIAOBT needs no direction */
-       gpio_no_direction(GPIO_PORT8CR); /* FSIAOLR needs no direction */
+       gpio_direction_none(GPIO_PORT7CR); /* FSIAOBT needs no direction */
+       gpio_direction_none(GPIO_PORT8CR); /* FSIAOLR needs no direction */
 
        /* FSI-HDMI */
        gpio_request(GPIO_FN_FSIBCK,            NULL);
This page took 0.026283 seconds and 5 git commands to generate.