aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/paride
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/paride')
-rw-r--r--drivers/block/paride/pd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/paride/pd.c b/drivers/block/paride/pd.c
index 12ff1a274d91..500d2ebb41e4 100644
--- a/drivers/block/paride/pd.c
+++ b/drivers/block/paride/pd.c
@@ -722,11 +722,10 @@ static int pd_special_command(struct pd_unit *disk,
722 rq.rq_status = RQ_ACTIVE; 722 rq.rq_status = RQ_ACTIVE;
723 rq.rq_disk = disk->gd; 723 rq.rq_disk = disk->gd;
724 rq.ref_count = 1; 724 rq.ref_count = 1;
725 rq.waiting = &wait; 725 rq.end_io_data = &wait;
726 rq.end_io = blk_end_sync_rq; 726 rq.end_io = blk_end_sync_rq;
727 blk_insert_request(disk->gd->queue, &rq, 0, func); 727 blk_insert_request(disk->gd->queue, &rq, 0, func);
728 wait_for_completion(&wait); 728 wait_for_completion(&wait);
729 rq.waiting = NULL;
730 if (rq.errors) 729 if (rq.errors)
731 err = -EIO; 730 err = -EIO;
732 blk_put_request(&rq); 731 blk_put_request(&rq);