]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/ata/pata_octeon_cf.c
ATA: pata_octeon_cf: Use I/O clock rate for timing calculations.
[mv-sheeva.git] / drivers / ata / pata_octeon_cf.c
index 06ddd91ffeda276f0ec5d0c0cfd2696f308a0cc1..74b829817891de507178d868807ed981f8027635 100644 (file)
@@ -60,7 +60,7 @@ static unsigned int ns_to_tim_reg(unsigned int tim_mult, unsigned int nsecs)
         * Compute # of eclock periods to get desired duration in
         * nanoseconds.
         */
-       val = DIV_ROUND_UP(nsecs * (octeon_get_clock_rate() / 1000000),
+       val = DIV_ROUND_UP(nsecs * (octeon_get_io_clock_rate() / 1000000),
                          1000 * tim_mult);
 
        return val;