diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-05 19:32:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-05 19:32:01 -0400 |
commit | 44aefd2706bb6f5b65ba2c38cd89e7609e2b43d3 (patch) | |
tree | 93824f573767da634fbc82c388b6d33cc454212b /drivers/char/rtc.c | |
parent | c1a26e7d40fb814716950122353a1a556844286b (diff) | |
parent | 7d12e780e003f93433d49ce78cfedf4b4c52adc5 (diff) |
Merge git://git.infradead.org/~dhowells/irq-2.6
* git://git.infradead.org/~dhowells/irq-2.6:
IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
IRQ: Typedef the IRQ handler function type
IRQ: Typedef the IRQ flow handler function type
Diffstat (limited to 'drivers/char/rtc.c')
-rw-r--r-- | drivers/char/rtc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c index 656f8c0ca52e..abee7a339462 100644 --- a/drivers/char/rtc.c +++ b/drivers/char/rtc.c | |||
@@ -113,9 +113,9 @@ static int rtc_has_irq = 1; | |||
113 | #define hpet_set_rtc_irq_bit(arg) 0 | 113 | #define hpet_set_rtc_irq_bit(arg) 0 |
114 | #define hpet_rtc_timer_init() do { } while (0) | 114 | #define hpet_rtc_timer_init() do { } while (0) |
115 | #define hpet_rtc_dropped_irq() 0 | 115 | #define hpet_rtc_dropped_irq() 0 |
116 | static inline irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id, struct pt_regs *regs) {return 0;} | 116 | static inline irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id) {return 0;} |
117 | #else | 117 | #else |
118 | extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id, struct pt_regs *regs); | 118 | extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id); |
119 | #endif | 119 | #endif |
120 | 120 | ||
121 | /* | 121 | /* |
@@ -229,7 +229,7 @@ static inline unsigned char rtc_is_updating(void) | |||
229 | * (See ./arch/XXXX/kernel/time.c for the set_rtc_mmss() function.) | 229 | * (See ./arch/XXXX/kernel/time.c for the set_rtc_mmss() function.) |
230 | */ | 230 | */ |
231 | 231 | ||
232 | irqreturn_t rtc_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 232 | irqreturn_t rtc_interrupt(int irq, void *dev_id) |
233 | { | 233 | { |
234 | /* | 234 | /* |
235 | * Can be an alarm interrupt, update complete interrupt, | 235 | * Can be an alarm interrupt, update complete interrupt, |
@@ -915,7 +915,7 @@ static const struct file_operations rtc_proc_fops = { | |||
915 | }; | 915 | }; |
916 | 916 | ||
917 | #if defined(RTC_IRQ) && !defined(__sparc__) | 917 | #if defined(RTC_IRQ) && !defined(__sparc__) |
918 | static irqreturn_t (*rtc_int_handler_ptr)(int irq, void *dev_id, struct pt_regs *regs); | 918 | static irq_handler_t rtc_int_handler_ptr; |
919 | #endif | 919 | #endif |
920 | 920 | ||
921 | static int __init rtc_init(void) | 921 | static int __init rtc_init(void) |