projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09e74c7
)
Staging: use new REQ_FLUSH flag, fix build breakage
author
Javier Martinez Canillas
<
[email protected]
>
Sat, 10 Jul 2010 03:28:13 +0000
(23:28 -0400)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 24 Aug 2010 01:15:33 +0000
(18:15 -0700)
REQ_TYPE_LINUX_BLOCK and REQ_LB_OP_FLUSH doesn't exist anymore. Using
the new REQ_FLUSH flag instead
Signed-off-by: Javier Martinez Canillas <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/spectra/ffsport.c
patch
|
blob
|
history
diff --git
a/drivers/staging/spectra/ffsport.c
b/drivers/staging/spectra/ffsport.c
index eca65363b23b9ef87b3378c2ac6f2c4d21f57818..00a0ac03a49a55d63cde31ff9b0a5a8db7869a86 100644
(file)
--- a/
drivers/staging/spectra/ffsport.c
+++ b/
drivers/staging/spectra/ffsport.c
@@
-289,8
+289,7
@@
static int do_transfer(struct spectra_nand_dev *tr, struct request *req)
IdentifyDeviceData.PagesPerBlock *
res_blks_os;
- if (req->cmd_type == REQ_TYPE_LINUX_BLOCK &&
- req->cmd[0] == REQ_LB_OP_FLUSH) {
+ if (req->cmd_type & REQ_FLUSH) {
if (force_flush_cache()) /* Fail to flush cache */
return -EIO;
else