Skip to content

Commit

Permalink
Staging: west bridge: block driver api fix
Browse files Browse the repository at this point in the history
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: David Cross <david.cross@cypress.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
David Cross authored and Greg Kroah-Hartman committed Sep 14, 2010
1 parent 4ecea3c commit 72bbd9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) ;
Expand Down

0 comments on commit 72bbd9b

Please sign in to comment.