aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_octeon_cf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c
index 06ddd91ffeda..74b829817891 100644
--- a/drivers/ata/pata_octeon_cf.c
+++ b/drivers/ata/pata_octeon_cf.c
@@ -60,7 +60,7 @@ static unsigned int ns_to_tim_reg(unsigned int tim_mult, unsigned int nsecs)
60 * Compute # of eclock periods to get desired duration in 60 * Compute # of eclock periods to get desired duration in
61 * nanoseconds. 61 * nanoseconds.
62 */ 62 */
63 val = DIV_ROUND_UP(nsecs * (octeon_get_clock_rate() / 1000000), 63 val = DIV_ROUND_UP(nsecs * (octeon_get_io_clock_rate() / 1000000),
64 1000 * tim_mult); 64 1000 * tim_mult);
65 65
66 return val; 66 return val;