]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/hpet.c
x86: HPET: read from HPET_Tn_CMP() not HPET_T0_CMP
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / hpet.c
index f10f9461a43daf25f3cb05a391f51966fe86860e..cfe6aa56f71b390af770d1c204b4c4e6749fdff4 100644 (file)
@@ -322,7 +322,7 @@ static int hpet_next_event(unsigned long delta,
         * what we wrote hit the chip before we compare it to the
         * counter.
         */
-       WARN_ON_ONCE((u32)hpet_readl(HPET_T0_CMP) != cnt);
+       WARN_ON_ONCE((u32)hpet_readl(HPET_Tn_CMP(timer)) != cnt);
 
        return (s32)((u32)hpet_readl(HPET_COUNTER) - cnt) >= 0 ? -ETIME : 0;
 }