aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/rtc.c2
-rw-r--r--drivers/rtc/rtc-cmos.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c
index d1569a0d0506..dbefbb30ed44 100644
--- a/drivers/char/rtc.c
+++ b/drivers/char/rtc.c
@@ -121,8 +121,6 @@ static irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id)
121 return 0; 121 return 0;
122} 122}
123#endif 123#endif
124#else
125extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id);
126#endif 124#endif
127 125
128/* 126/*
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c
index d7bb9bac71df..94b89a2d9c2e 100644
--- a/drivers/rtc/rtc-cmos.c
+++ b/drivers/rtc/rtc-cmos.c
@@ -52,7 +52,10 @@
52#define hpet_rtc_timer_init() do { } while (0) 52#define hpet_rtc_timer_init() do { } while (0)
53#define hpet_register_irq_handler(h) 0 53#define hpet_register_irq_handler(h) 0
54#define hpet_unregister_irq_handler(h) do { } while (0) 54#define hpet_unregister_irq_handler(h) do { } while (0)
55extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id); 55static irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id)
56{
57 return 0;
58}
56#endif 59#endif
57 60
58struct cmos_rtc { 61struct cmos_rtc {