diff options
author | Greg Ungerer <gerg@uclinux.org> | 2014-11-09 20:41:18 -0500 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2015-02-02 23:16:23 -0500 |
commit | 7372eefc15f0f6d6d97c4afbf8be3ba12105a633 (patch) | |
tree | 20524f619d606fbea9c656e33644498446cb2018 /arch/m68k | |
parent | ef0012b48cb7410014b733de939470d80d827dfe (diff) |
m68knommu: fix irq handler types in 68360/commproc.c
Compilation of arch/m68k/68360/commproc.c fails with the following errors:
arch/m68k/68360/commproc.c:75:1: error: function declaration isn’t a prototype
arch/m68k/68360/commproc.c:211:1: error: function declaration isn’t a prototype
arch/m68k/68360/commproc.c: In function ‘cpm_install_handler’:
arch/m68k/68360/commproc.c:214:2: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
include/linux/interrupt.h:128:1: note: expected ‘irq_handler_t’ but argument is of type ‘void (*)()’
It should be using the proper irq hander type, irq_handler_t. Modify it
to use that.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/68360/commproc.c | 8 | ||||
-rw-r--r-- | arch/m68k/include/asm/commproc.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/m68k/68360/commproc.c b/arch/m68k/68360/commproc.c index 315727b7ff40..14d7f35cd37b 100644 --- a/arch/m68k/68360/commproc.c +++ b/arch/m68k/68360/commproc.c | |||
@@ -64,15 +64,15 @@ QUICC *pquicc; | |||
64 | 64 | ||
65 | /* CPM interrupt vector functions. */ | 65 | /* CPM interrupt vector functions. */ |
66 | struct cpm_action { | 66 | struct cpm_action { |
67 | void (*handler)(void *); | 67 | irq_handler_t handler; |
68 | void *dev_id; | 68 | void *dev_id; |
69 | }; | 69 | }; |
70 | static struct cpm_action cpm_vecs[CPMVEC_NR]; | 70 | static struct cpm_action cpm_vecs[CPMVEC_NR]; |
71 | static void cpm_interrupt(int irq, void * dev, struct pt_regs * regs); | 71 | static void cpm_interrupt(int irq, void * dev, struct pt_regs * regs); |
72 | static void cpm_error_interrupt(void *); | 72 | static void cpm_error_interrupt(void *); |
73 | 73 | ||
74 | /* prototypes: */ | 74 | /* prototypes: */ |
75 | void cpm_install_handler(int vec, void (*handler)(), void *dev_id); | 75 | void cpm_install_handler(int vec, irq_handler_t handler, void *dev_id); |
76 | void m360_cpm_reset(void); | 76 | void m360_cpm_reset(void); |
77 | 77 | ||
78 | 78 | ||
@@ -208,7 +208,7 @@ cpm_error_interrupt(void *dev) | |||
208 | /* Install a CPM interrupt handler. | 208 | /* Install a CPM interrupt handler. |
209 | */ | 209 | */ |
210 | void | 210 | void |
211 | cpm_install_handler(int vec, void (*handler)(), void *dev_id) | 211 | cpm_install_handler(int vec, irq_handler_t handler, void *dev_id) |
212 | { | 212 | { |
213 | 213 | ||
214 | request_irq(vec, handler, 0, "timer", dev_id); | 214 | request_irq(vec, handler, 0, "timer", dev_id); |
diff --git a/arch/m68k/include/asm/commproc.h b/arch/m68k/include/asm/commproc.h index c67e09279ea9..f41c96863e98 100644 --- a/arch/m68k/include/asm/commproc.h +++ b/arch/m68k/include/asm/commproc.h | |||
@@ -649,7 +649,7 @@ typedef struct scc_trans { | |||
649 | /* #define CPMVEC_PIO_PC4 ((ushort)0x01) */ | 649 | /* #define CPMVEC_PIO_PC4 ((ushort)0x01) */ |
650 | /* #define CPMVEC_ERROR ((ushort)0x00) */ | 650 | /* #define CPMVEC_ERROR ((ushort)0x00) */ |
651 | 651 | ||
652 | extern void cpm_install_handler(int vec, void (*handler)(void *), void *dev_id); | 652 | extern void cpm_install_handler(int vec, irq_handler_t handler, void *dev_id); |
653 | 653 | ||
654 | /* CPM interrupt configuration vector. | 654 | /* CPM interrupt configuration vector. |
655 | */ | 655 | */ |