]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/sgiioc4.c
ide: move command related fields from ide_hwif_t to struct ide_cmd
[linux-2.6-omap-h63xx.git] / drivers / ide / sgiioc4.c
index ab9433a7ad1fb1042819c3da3cd62cedb5f4749e..b0769e96d32febf2b3cf023761522b816e81912e 100644 (file)
@@ -429,7 +429,7 @@ sgiioc4_build_dma_table(ide_drive_t * drive, struct request *rq, int ddir)
 {
        ide_hwif_t *hwif = drive->hwif;
        unsigned int *table = hwif->dmatable_cpu;
-       unsigned int count = 0, i = hwif->sg_nents;
+       unsigned int count = 0, i = hwif->cmd.sg_nents;
        struct scatterlist *sg = hwif->sg_table;
 
        while (i && sg_dma_len(sg)) {