diff options
Diffstat (limited to 'drivers/ide/tx4939ide.c')
-rw-r--r-- | drivers/ide/tx4939ide.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/tx4939ide.c b/drivers/ide/tx4939ide.c index 30d0d256230f..97cd9e0f66f6 100644 --- a/drivers/ide/tx4939ide.c +++ b/drivers/ide/tx4939ide.c | |||
@@ -564,7 +564,7 @@ static void tx4939ide_input_data_swap(ide_drive_t *drive, struct request *rq, | |||
564 | 564 | ||
565 | while (count--) | 565 | while (count--) |
566 | *ptr++ = cpu_to_le16(__raw_readw((void __iomem *)port)); | 566 | *ptr++ = cpu_to_le16(__raw_readw((void __iomem *)port)); |
567 | __ide_flush_dcache_range((unsigned long)buf, count * 2); | 567 | __ide_flush_dcache_range((unsigned long)buf, roundup(len, 2)); |
568 | } | 568 | } |
569 | 569 | ||
570 | static void tx4939ide_output_data_swap(ide_drive_t *drive, struct request *rq, | 570 | static void tx4939ide_output_data_swap(ide_drive_t *drive, struct request *rq, |
@@ -578,7 +578,7 @@ static void tx4939ide_output_data_swap(ide_drive_t *drive, struct request *rq, | |||
578 | __raw_writew(le16_to_cpu(*ptr), (void __iomem *)port); | 578 | __raw_writew(le16_to_cpu(*ptr), (void __iomem *)port); |
579 | ptr++; | 579 | ptr++; |
580 | } | 580 | } |
581 | __ide_flush_dcache_range((unsigned long)buf, count * 2); | 581 | __ide_flush_dcache_range((unsigned long)buf, roundup(len, 2)); |
582 | } | 582 | } |
583 | 583 | ||
584 | static const struct ide_tp_ops tx4939ide_tp_ops = { | 584 | static const struct ide_tp_ops tx4939ide_tp_ops = { |