summaryrefslogtreecommitdiff
path: root/target/linux/ar7/files/drivers
diff options
context:
space:
mode:
authorEugene Konev <ejka@imfi.kspu.ru>2007-09-21 12:37:50 +0000
committerEugene Konev <ejka@imfi.kspu.ru>2007-09-21 12:37:50 +0000
commit041a03c5bdb4339f3ed2bc90268747de5b20c951 (patch)
tree9be165a8c4ae82520674a61cefae303e06c03de5 /target/linux/ar7/files/drivers
parentd725c9b25be261a9cdde4b83ff00ed0744fe9c7d (diff)
downloadmtk-20170518-041a03c5bdb4339f3ed2bc90268747de5b20c951.zip
mtk-20170518-041a03c5bdb4339f3ed2bc90268747de5b20c951.tar.gz
mtk-20170518-041a03c5bdb4339f3ed2bc90268747de5b20c951.tar.bz2
make gpio conformant to generic gpio spec.
SVN-Revision: 8911
Diffstat (limited to 'target/linux/ar7/files/drivers')
-rw-r--r--target/linux/ar7/files/drivers/char/ar7_gpio.c2
-rw-r--r--target/linux/ar7/files/drivers/leds/leds-ar7.c2
2 files changed, 2 insertions, 2 deletions
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;