aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorJavier Martinez Canillas <martinez.javier@gmail.com>2010-07-09 23:28:13 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-23 21:15:33 -0400
commit7b633f6624ce4ea6199a54c2cad6c9e84164f8f5 (patch)
tree4998a7b315be0c6faaefe3eee2bdd7dab7157805 /drivers/staging
parent09e74c794fc9d5064e07c4bf6c9d5458586385c1 (diff)
Staging: use new REQ_FLUSH flag, fix build breakage
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 <martinez.javier@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/spectra/ffsport.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/spectra/ffsport.c b/drivers/staging/spectra/ffsport.c
index eca65363b23b..00a0ac03a49a 100644
--- 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)
289 IdentifyDeviceData.PagesPerBlock * 289 IdentifyDeviceData.PagesPerBlock *
290 res_blks_os; 290 res_blks_os;
291 291
292 if (req->cmd_type == REQ_TYPE_LINUX_BLOCK && 292 if (req->cmd_type & REQ_FLUSH) {
293 req->cmd[0] == REQ_LB_OP_FLUSH) {
294 if (force_flush_cache()) /* Fail to flush cache */ 293 if (force_flush_cache()) /* Fail to flush cache */
295 return -EIO; 294 return -EIO;
296 else 295 else