@@ -121,11 +121,12 @@ static inline int hpet_set_periodic_freq
return 0;
}
-static inline int hpet_rtc_dropped_irq(void)
-{
- return 0;
-}
-
+/* Not used in this file, but mentioned in include-file <asm/hpet.h>
+ * static inline int hpet_rtc_dropped_irq(void)
+ * {
+ * return 0;
+ * }
+ */
static inline int hpet_rtc_timer_init(void)
{
return 0;
@@ -700,6 +701,11 @@ cmos_do_probe(struct device *dev, struct
if (is_valid_irq(rtc_irq)) {
irq_handler_t rtc_cmos_int_handler;
+/* if CONFIG_HPET_EMULATE_RTC is false, "is_hpet_enabled()" is defined to
+ * return zero (false).
+ */
+
+#ifdef CONFIG_HPET_EMULATE_RTC
if (is_hpet_enabled()) {
int err;
@@ -711,6 +717,7 @@ cmos_do_probe(struct device *dev, struct
goto cleanup1;
}
} else
+#endif /* CONFIG_HPET_EMULATE_RTC */
rtc_cmos_int_handler = cmos_interrupt;
retval = request_irq(rtc_irq, rtc_cmos_int_handler,