diff options
Diffstat (limited to 'drivers/scsi/sata_mv.c')
-rw-r--r-- | drivers/scsi/sata_mv.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c index e72140342d05..c40e9843b454 100644 --- a/drivers/scsi/sata_mv.c +++ b/drivers/scsi/sata_mv.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include <asm/io.h> | 35 | #include <asm/io.h> |
36 | 36 | ||
37 | #define DRV_NAME "sata_mv" | 37 | #define DRV_NAME "sata_mv" |
38 | #define DRV_VERSION "0.24" | 38 | #define DRV_VERSION "0.25" |
39 | 39 | ||
40 | enum { | 40 | enum { |
41 | /* BAR's are enumerated in terms of pci_resource_start() terms */ | 41 | /* BAR's are enumerated in terms of pci_resource_start() terms */ |
@@ -291,7 +291,7 @@ static Scsi_Host_Template mv_sht = { | |||
291 | .ordered_flush = 1, | 291 | .ordered_flush = 1, |
292 | }; | 292 | }; |
293 | 293 | ||
294 | static struct ata_port_operations mv_ops = { | 294 | static const struct ata_port_operations mv_ops = { |
295 | .port_disable = ata_port_disable, | 295 | .port_disable = ata_port_disable, |
296 | 296 | ||
297 | .tf_load = ata_tf_load, | 297 | .tf_load = ata_tf_load, |
@@ -801,7 +801,8 @@ static void mv_fill_sg(struct ata_queued_cmd *qc) | |||
801 | pp->sg_tbl[i].flags_size = cpu_to_le32(sg_len); | 801 | pp->sg_tbl[i].flags_size = cpu_to_le32(sg_len); |
802 | } | 802 | } |
803 | if (0 < qc->n_elem) { | 803 | if (0 < qc->n_elem) { |
804 | pp->sg_tbl[qc->n_elem - 1].flags_size |= EPRD_FLAG_END_OF_TBL; | 804 | pp->sg_tbl[qc->n_elem - 1].flags_size |= |
805 | cpu_to_le32(EPRD_FLAG_END_OF_TBL); | ||
805 | } | 806 | } |
806 | } | 807 | } |
807 | 808 | ||