summaryrefslogtreecommitdiff
path: root/target/linux/ar7/files/arch
diff options
context:
space:
mode:
authorejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-09-21 12:37:50 +0000
committerejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-09-21 12:37:50 +0000
commit35a0fb9185194743f1d43c07dea98347e052a96a (patch)
treef6c8e7ecf7b2d3f53aa96fd8062af9d2774dce18 /target/linux/ar7/files/arch
parent9fb66acf6351fde2162c690b2e238f4c438febb0 (diff)
make gpio conformant to generic gpio spec.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8911 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7/files/arch')
-rw-r--r--target/linux/ar7/files/arch/mips/ar7/gpio.c4
-rw-r--r--target/linux/ar7/files/arch/mips/ar7/platform.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/target/linux/ar7/files/arch/mips/ar7/gpio.c b/target/linux/ar7/files/arch/mips/ar7/gpio.c
index e18dfe873a..11f300fead 100644
--- a/target/linux/ar7/files/arch/mips/ar7/gpio.c
+++ b/target/linux/ar7/files/arch/mips/ar7/gpio.c
@@ -20,9 +20,9 @@
#include <asm/ar7/gpio.h>
-static char *ar7_gpio_list[AR7_GPIO_MAX] = { 0, };
+static const char *ar7_gpio_list[AR7_GPIO_MAX] = { 0, };
-int gpio_request(unsigned gpio, char *label)
+int gpio_request(unsigned gpio, const char *label)
{
if (gpio >= AR7_GPIO_MAX)
return -EINVAL;
diff --git a/target/linux/ar7/files/arch/mips/ar7/platform.c b/target/linux/ar7/files/arch/mips/ar7/platform.c
index 1af1a87b2a..980739f90a 100644
--- a/target/linux/ar7/files/arch/mips/ar7/platform.c
+++ b/target/linux/ar7/files/arch/mips/ar7/platform.c
@@ -58,10 +58,9 @@ static int vlynq_on(struct vlynq_device *dev)
if ((result = ar7_gpio_enable(pdata->gpio_bit)))
goto out_enabled;
- if ((result = gpio_direction_output(pdata->gpio_bit)))
+ if ((result = gpio_direction_output(pdata->gpio_bit, 0)))
goto out_gpio_enabled;
- gpio_set_value(pdata->gpio_bit, 0);
mdelay(50);
gpio_set_value(pdata->gpio_bit, 1);