--- linux-2.6.10-rc1-mm3/drivers/char/rtc.c.orig 2004-11-11 11:35:00.898841565 -0600 +++ linux-2.6.10-rc1-mm3/drivers/char/rtc.c 2004-11-11 12:07:54.019642611 -0600 @@ -863,7 +863,9 @@ if(rtc_status & RTC_IS_OPEN) goto out_busy; +#ifdef RTC_IRQ rtc_open_event(); +#endif rtc_status |= RTC_IS_OPEN; rtc_irq_data = 0; @@ -920,7 +922,9 @@ rtc_irq_data = 0; rtc_status &= ~RTC_IS_OPEN; spin_unlock_irq (&rtc_lock); +#ifdef RTC_IRQ rtc_close_event(); +#endif return 0; }