Commit 1ea9acc7 authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] m68knommu: use irq_handler_t for passing handler types in 68328 setup

Use irq_handler_t type for passing around timer interrupt routine
in 368360 setup code.
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b032fde9
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/interrupt.h>
#include <asm/setup.h> #include <asm/setup.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
...@@ -52,7 +53,7 @@ ...@@ -52,7 +53,7 @@
/***************************************************************************/ /***************************************************************************/
void m68328_timer_init(irqreturn_t (*timer_routine) (int, void *, struct pt_regs *)) void m68328_timer_init(irq_handler_t timer_routine)
{ {
/* disable timer 1 */ /* disable timer 1 */
TCTL = 0; TCTL = 0;
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/tty.h> #include <linux/tty.h>
#include <linux/console.h> #include <linux/console.h>
#include <linux/interrupt.h>
#include <asm/setup.h> #include <asm/setup.h>
#include <asm/system.h> #include <asm/system.h>
...@@ -31,7 +32,7 @@ ...@@ -31,7 +32,7 @@
/***************************************************************************/ /***************************************************************************/
void m68328_timer_init(irqreturn_t (*timer_routine) (int, void *, struct pt_regs *)); void m68328_timer_init(irq_handler_t timer_routine);
void m68328_timer_tick(void); void m68328_timer_tick(void);
unsigned long m68328_timer_gettimeoffset(void); unsigned long m68328_timer_gettimeoffset(void);
void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec); void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec);
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <linux/console.h> #include <linux/console.h>
#include <linux/kd.h> #include <linux/kd.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/interrupt.h>
#include <asm/setup.h> #include <asm/setup.h>
#include <asm/system.h> #include <asm/system.h>
...@@ -36,7 +37,7 @@ ...@@ -36,7 +37,7 @@
/***************************************************************************/ /***************************************************************************/
void m68328_timer_init(irqreturn_t (*timer_routine) (int, void *, struct pt_regs *)); void m68328_timer_init(irq_handler_t timer_routine);
void m68328_timer_tick(void); void m68328_timer_tick(void);
unsigned long m68328_timer_gettimeoffset(void); unsigned long m68328_timer_gettimeoffset(void);
void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec); void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment