diff options
Diffstat (limited to 'drivers/cdrom/gdrom.c')
-rw-r--r-- | drivers/cdrom/gdrom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c index 51e75ad96422..584bc3126403 100644 --- a/drivers/cdrom/gdrom.c +++ b/drivers/cdrom/gdrom.c | |||
@@ -602,7 +602,7 @@ static void gdrom_readdisk_dma(struct work_struct *work) | |||
602 | spin_unlock(&gdrom_lock); | 602 | spin_unlock(&gdrom_lock); |
603 | block = blk_rq_pos(req)/GD_TO_BLK + GD_SESSION_OFFSET; | 603 | block = blk_rq_pos(req)/GD_TO_BLK + GD_SESSION_OFFSET; |
604 | block_cnt = blk_rq_sectors(req)/GD_TO_BLK; | 604 | block_cnt = blk_rq_sectors(req)/GD_TO_BLK; |
605 | __raw_writel(virt_to_phys(req->buffer), GDROM_DMA_STARTADDR_REG); | 605 | __raw_writel(virt_to_phys(bio_data(req->bio)), GDROM_DMA_STARTADDR_REG); |
606 | __raw_writel(block_cnt * GDROM_HARD_SECTOR, GDROM_DMA_LENGTH_REG); | 606 | __raw_writel(block_cnt * GDROM_HARD_SECTOR, GDROM_DMA_LENGTH_REG); |
607 | __raw_writel(1, GDROM_DMA_DIRECTION_REG); | 607 | __raw_writel(1, GDROM_DMA_DIRECTION_REG); |
608 | __raw_writel(1, GDROM_DMA_ENABLE_REG); | 608 | __raw_writel(1, GDROM_DMA_ENABLE_REG); |