]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/ide/pdc202xx_old.c
Merge branch 'for-2.6.31' of git://git.kernel.dk/linux-2.6-block
[mirror_ubuntu-bionic-kernel.git] / drivers / ide / pdc202xx_old.c
index b3bc96f930a6feb227d2827ef8ee748a29e2030c..e24ecc87a9b1837a60bdfce7ae59fffd1b2ad7f1 100644 (file)
@@ -177,7 +177,7 @@ static void pdc202xx_dma_start(ide_drive_t *drive)
                u8 clock = inb(high_16 + 0x11);
 
                outb(clock | (hwif->channel ? 0x08 : 0x02), high_16 + 0x11);
-               word_count = (rq->nr_sectors << 8);
+               word_count = (blk_rq_sectors(rq) << 8);
                word_count = (rq_data_dir(rq) == READ) ?
                                        word_count | 0x05000000 :
                                        word_count | 0x06000000;