From 041a03c5bdb4339f3ed2bc90268747de5b20c951 Mon Sep 17 00:00:00 2001 From: Eugene Konev Date: Fri, 21 Sep 2007 12:37:50 +0000 Subject: make gpio conformant to generic gpio spec. SVN-Revision: 8911 --- target/linux/ar7/files/drivers/char/ar7_gpio.c | 2 +- target/linux/ar7/files/drivers/leds/leds-ar7.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/ar7/files/drivers') diff --git a/target/linux/ar7/files/drivers/char/ar7_gpio.c b/target/linux/ar7/files/drivers/char/ar7_gpio.c index d3cd7d9..aa68a5b 100644 --- a/target/linux/ar7/files/drivers/char/ar7_gpio.c +++ b/target/linux/ar7/files/drivers/char/ar7_gpio.c @@ -73,7 +73,7 @@ static ssize_t ar7_gpio_write(struct file *file, const char __user *buf, case 'o': case 'O': case '>': - gpio_direction_output(pin); + gpio_direction_output(pin, 0); break; default: return -EINVAL; diff --git a/target/linux/ar7/files/drivers/leds/leds-ar7.c b/target/linux/ar7/files/drivers/leds/leds-ar7.c index fb137c9..53ab53f 100644 --- a/target/linux/ar7/files/drivers/leds/leds-ar7.c +++ b/target/linux/ar7/files/drivers/leds/leds-ar7.c @@ -73,7 +73,7 @@ static int ar7_leds_probe(struct platform_device *pdev) goto out; ar7_gpio_enable(AR7_GPIO_BIT_STATUS_LED); - gpio_direction_output(AR7_GPIO_BIT_STATUS_LED); + gpio_direction_output(AR7_GPIO_BIT_STATUS_LED, 0); out: return rc; -- cgit v1.1