From: Javier Martinez Canillas Date: Sat, 10 Jul 2010 03:28:13 +0000 (-0400) Subject: Staging: use new REQ_FLUSH flag, fix build breakage X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7b633f6624ce4ea6199a54c2cad6c9e84164f8f5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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) 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