diff options
author | ejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-09-21 12:37:50 +0000 |
---|---|---|
committer | ejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-09-21 12:37:50 +0000 |
commit | 35a0fb9185194743f1d43c07dea98347e052a96a (patch) | |
tree | f6c8e7ecf7b2d3f53aa96fd8062af9d2774dce18 /target/linux/ar7/files/arch/mips/ar7/platform.c | |
parent | 9fb66acf6351fde2162c690b2e238f4c438febb0 (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/mips/ar7/platform.c')
-rw-r--r-- | target/linux/ar7/files/arch/mips/ar7/platform.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/ar7/files/arch/mips/ar7/platform.c b/target/linux/ar7/files/arch/mips/ar7/platform.c index 1af1a87b2..980739f90 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); |