aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-cd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-cd.c')
-rw-r--r--drivers/ide/ide-cd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 182320dd6ea1..eb4f3dc9f182 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -775,8 +775,8 @@ static ide_startstop_t cdrom_start_rw(ide_drive_t *drive, struct request *rq)
775 } 775 }
776 776
777 /* fs requests *must* be hardware frame aligned */ 777 /* fs requests *must* be hardware frame aligned */
778 if ((rq->nr_sectors & (sectors_per_frame - 1)) || 778 if ((blk_rq_sectors(rq) & (sectors_per_frame - 1)) ||
779 (rq->sector & (sectors_per_frame - 1))) 779 (blk_rq_pos(rq) & (sectors_per_frame - 1)))
780 return ide_stopped; 780 return ide_stopped;
781 781
782 /* use DMA, if possible */ 782 /* use DMA, if possible */
@@ -868,8 +868,8 @@ static ide_startstop_t ide_cd_do_request(ide_drive_t *drive, struct request *rq,
868 cmd.rq = rq; 868 cmd.rq = rq;
869 869
870 if (blk_fs_request(rq) || rq->data_len) { 870 if (blk_fs_request(rq) || rq->data_len) {
871 ide_init_sg_cmd(&cmd, blk_fs_request(rq) ? (rq->nr_sectors << 9) 871 ide_init_sg_cmd(&cmd, blk_fs_request(rq) ?
872 : rq->data_len); 872 (blk_rq_sectors(rq) << 9) : rq->data_len);
873 ide_map_sg(drive, &cmd); 873 ide_map_sg(drive, &cmd);
874 } 874 }
875 875