diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-06-25 00:40:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-06-25 11:11:22 -0700 |
commit | eeba34d97a2e391f85b30c88ba8d4b0f51f9f8c3 (patch) | |
tree | 327d4890d3c21f6ca0f839d7b937476d8da1f656 /drivers/staging/spectra | |
parent | 3afbe13cbe02ca9911435b274a256f5502bb36de (diff) |
Staging: spectra: remove non existing blk_fs_request wrapper
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>
Diffstat (limited to 'drivers/staging/spectra')
-rw-r--r-- | drivers/staging/spectra/ffsport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/spectra/ffsport.c b/drivers/staging/spectra/ffsport.c index 3c3565d4054..d0c5c97eda3 100644 --- a/drivers/staging/spectra/ffsport.c +++ b/drivers/staging/spectra/ffsport.c @@ -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)) { |