x86: Do not try to disable hpet if it hasn't been initialized before
[linux-2.6.git] / arch / x86 / kernel / hpet.c
index a198b7c..ba390d7 100644 (file)
@@ -964,7 +964,7 @@ fs_initcall(hpet_late_init);
 
 void hpet_disable(void)
 {
-       if (is_hpet_capable()) {
+       if (is_hpet_capable() && hpet_virt_address) {
                unsigned int cfg = hpet_readl(HPET_CFG);
 
                if (hpet_legacy_int_enabled) {