projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GPIO code updates, make the cf-mips driver compile against this gpio version
[openwrt.git]
/
target
/
linux
/
rb532
/
files
/
drivers
/
block
/
rb500
/
bdev.c
diff --git
a/target/linux/rb532/files/drivers/block/rb500/bdev.c
b/target/linux/rb532/files/drivers/block/rb500/bdev.c
index
e453273
..
f8a9b02
100644
(file)
--- 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/uaccess.h>
#include <asm/io.h>
+#include <asm/gpio.h>
#include <asm/rc32434/rb.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 */
/* 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 */
}
return 0; /* success */
}
This page took
0.027214 seconds
and
4
git commands to generate.