Commit 72bbd9bc authored by David Cross's avatar David Cross Committed by Greg Kroah-Hartman

Staging: west bridge: block driver api fix

This patch contains an update for cyasblkdev_queue.c which is needed for
the kernel update from 2.6.35 to 2.6.36.
Signed-off-by: default avatarDavid Cross <david.cross@cypress.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4ecea3c5
......@@ -95,7 +95,7 @@ static int cyasblkdev_prep_request(
DBGPRN_FUNC_NAME;
/* we only like normal block requests.*/
if (!blk_fs_request(req)) {
if (req->cmd_type != REQ_TYPE_FS && !(req->cmd_flags & REQ_DISCARD)) {
#ifndef WESTBRIDGE_NDEBUG
cy_as_hal_print_message("%s:%x bad request received\n",
__func__, current->pid) ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment