Skip to content

Commit

Permalink
[SPARC] minor irq handler cleanups
Browse files Browse the repository at this point in the history
- mark timer_interrupt() static

- sparc_floppy_request_irq() prototype should use irq_handler_t

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Acked-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jeff Garzik authored and Jeff Garzik committed Apr 20, 2008
1 parent 90968eb commit 5dc0742
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/sparc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ __volatile__ unsigned int *master_l10_limit;

#define TICK_SIZE (tick_nsec / 1000)

irqreturn_t timer_interrupt(int irq, void *dev_id)
static irqreturn_t timer_interrupt(int dummy, void *dev_id)
{
/* last time the cmos clock got updated */
static long last_rtc_update;
Expand Down
2 changes: 1 addition & 1 deletion include/asm-sparc/floppy.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ static inline void sun_fd_enable_dma(void)

/* Our low-level entry point in arch/sparc/kernel/entry.S */
extern int sparc_floppy_request_irq(int irq, unsigned long flags,
irqreturn_t (*irq_handler)(int irq, void *));
irq_handler_t irq_handler);

static int sun_fd_request_irq(void)
{
Expand Down

0 comments on commit 5dc0742

Please sign in to comment.