diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-04-07 21:49:05 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-04-07 21:49:05 +0000 |
commit | 616fdf7c8fc749dba9f674e08be1952e9f573f1e (patch) | |
tree | f34d07904c8fc021caed0d2135562906f0e57797 /target/linux/rb532/files/drivers/block/rb500/bdev.c | |
parent | 546725acb21ae3a3fd9e2b6d11acdd90c032efa7 (diff) | |
download | master-187ad058-616fdf7c8fc749dba9f674e08be1952e9f573f1e.tar.gz master-187ad058-616fdf7c8fc749dba9f674e08be1952e9f573f1e.tar.bz2 master-187ad058-616fdf7c8fc749dba9f674e08be1952e9f573f1e.zip |
GPIO code updates, make the cf-mips driver compile against this gpio version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10768 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/rb532/files/drivers/block/rb500/bdev.c')
-rw-r--r-- | target/linux/rb532/files/drivers/block/rb500/bdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/rb532/files/drivers/block/rb500/bdev.c b/target/linux/rb532/files/drivers/block/rb500/bdev.c index e4532739b9..f8a9b02d70 100644 --- a/target/linux/rb532/files/drivers/block/rb500/bdev.c +++ b/target/linux/rb532/files/drivers/block/rb500/bdev.c @@ -23,6 +23,7 @@ #include <asm/uaccess.h> #include <asm/io.h> +#include <asm/gpio.h> #include <asm/rc32434/rb.h> @@ -242,7 +243,7 @@ static int cf_open(struct inode *inode, struct file *filp) /* dirty workaround to set CFRDY GPIO as an input when some other program sets it as an output */ - gpio_set(CFG, (1 << dev->pin), 0); + gpio_set_value(dev->pin, 0); return 0; /* success */ } |