]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/block/mg_disk.c
Timer: Allow reset_timer() only for systems with low resolution timers
[karo-tx-uboot.git] / drivers / block / mg_disk.c
index f9e175dcb830854cf573db9a9a0313b194e5b470..4407006a6f80f870a5a020b71ff4e17f424626d0 100644 (file)
@@ -91,7 +91,9 @@ static unsigned int mg_wait (u32 expect, u32 msec)
        u32 from, cur, err;
 
        err = MG_ERR_NONE;
+#ifdef CONFIG_SYS_LOW_RES_TIMER
        reset_timer();
+#endif
        from = get_timer(0);
 
        status = readb(mg_base() + MG_REG_STATUS);