]> err.no Git - linux-2.6/blobdiff - drivers/ata/sata_mv.c
HID: Implement horizontal wheel handling for A4 Tech X5-005D
[linux-2.6] / drivers / ata / sata_mv.c
index 37b850ae084559d573e125a096cbdfe0eac3f958..7e72463a90eb8b84a9ea76ad13e91aea2b5249d8 100644 (file)
@@ -1136,9 +1136,10 @@ static void mv_fill_sg(struct ata_queued_cmd *qc)
        struct mv_port_priv *pp = qc->ap->private_data;
        struct scatterlist *sg;
        struct mv_sg *mv_sg, *last_sg = NULL;
+       unsigned int si;
 
        mv_sg = pp->sg_tbl;
-       ata_for_each_sg(sg, qc) {
+       for_each_sg(qc->sg, sg, qc->n_elem, si) {
                dma_addr_t addr = sg_dma_address(sg);
                u32 sg_len = sg_dma_len(sg);