Title: [4092] trunk/sound/soc/blackfin/bf5xx-ac97.c: [#3795] update gpio_direction_output() to common api
Revision
4092
Author
vapier
Date
2008-01-10 11:45:37 -0600 (Thu, 10 Jan 2008)

Log Message

[#3795] update gpio_direction_output() to common api

Diffstat

 bf5xx-ac97.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

Modified Paths

Diff

Modified: trunk/sound/soc/blackfin/bf5xx-ac97.c (4091 => 4092)


--- trunk/sound/soc/blackfin/bf5xx-ac97.c	2008-01-10 14:17:04 UTC (rev 4091)
+++ trunk/sound/soc/blackfin/bf5xx-ac97.c	2008-01-10 17:45:37 UTC (rev 4092)
@@ -206,8 +206,7 @@
 
 	peripheral_free(per);
 	gpio_request(gpio, NULL);
-	gpio_direction_output(gpio);
-	gpio_set_value(gpio, 1);
+	gpio_direction_output(gpio, 1);
 	udelay(2);
 	gpio_set_value(gpio, 0);
 	udelay(1);
@@ -305,8 +304,7 @@
 		peripheral_free_list(&sport_req[sport_num][0]);
 		return -1;
 	}
-	gpio_direction_output(CONFIG_SND_BF5XX_RESET_GPIO_NUM);
-	gpio_set_value(CONFIG_SND_BF5XX_RESET_GPIO_NUM, 1);
+	gpio_direction_output(CONFIG_SND_BF5XX_RESET_GPIO_NUM, 1);
 #endif
 	sport_handle = sport_init(&sport_params[sport_num], 2, \
 			sizeof(struct ac97_frame), NULL);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to