Skip to content

Commit

Permalink
Staging: spectra: remove non existing blk_fs_request wrapper
Browse files Browse the repository at this point in the history
The spectra driver doesn't compile with today linux-next

The problem is that it tries to use a blk_fs_request macro. Searching
for this macro I saw that it used to exist in linux/blkdev.h as

#define blk_fs_request(rq) ((rq)->cmd_type == REQ_TYPE_FS)

This patch solves the issue eliminating the unnecessary (and now inexistent) wrapper

Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Javier Martinez Canillas authored and Greg Kroah-Hartman committed Jun 25, 2010
1 parent 3afbe13 commit eeba34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/spectra/ffsport.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ static int do_transfer(struct spectra_nand_dev *tr, struct request *req)
return 0;
}

if (!blk_fs_request(req))
if (req->cmd_type != REQ_TYPE_FS)
return -EIO;

if (blk_rq_pos(req) + blk_rq_cur_sectors(req) > get_capacity(tr->gd)) {
Expand Down

0 comments on commit eeba34d

Please sign in to comment.