diff options
-rw-r--r-- | arch/x86/kernel/hpet.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c index 84089dc8fd1d..a1f6ed5e1a05 100644 --- a/arch/x86/kernel/hpet.c +++ b/arch/x86/kernel/hpet.c | |||
@@ -834,10 +834,11 @@ static __init int hpet_late_init(void) | |||
834 | 834 | ||
835 | hpet_address = force_hpet_address; | 835 | hpet_address = force_hpet_address; |
836 | hpet_enable(); | 836 | hpet_enable(); |
837 | if (!hpet_virt_address) | ||
838 | return -ENODEV; | ||
839 | } | 837 | } |
840 | 838 | ||
839 | if (!hpet_virt_address) | ||
840 | return -ENODEV; | ||
841 | |||
841 | hpet_reserve_platform_timers(hpet_readl(HPET_ID)); | 842 | hpet_reserve_platform_timers(hpet_readl(HPET_ID)); |
842 | 843 | ||
843 | for_each_online_cpu(cpu) { | 844 | for_each_online_cpu(cpu) { |