diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-10-09 07:48:42 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-10-09 21:55:25 -0400 |
commit | 39e3eb7265b8698e5f607a317af13c9478274736 (patch) | |
tree | 927b34392c7d74b38d52749c2311f6dfe7285851 /arch/ppc/8xx_io/commproc.c | |
parent | 8de242e60a441f177dd51b323894b17d3d63e9f2 (diff) |
[POWERPC] ARCH=ppc pt_regs fixes
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/8xx_io/commproc.c')
-rw-r--r-- | arch/ppc/8xx_io/commproc.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/arch/ppc/8xx_io/commproc.c b/arch/ppc/8xx_io/commproc.c index 9b3ace26280c..3b23bcb35b7a 100644 --- a/arch/ppc/8xx_io/commproc.c +++ b/arch/ppc/8xx_io/commproc.c | |||
@@ -47,12 +47,12 @@ cpm8xx_t *cpmp; /* Pointer to comm processor space */ | |||
47 | /* CPM interrupt vector functions. | 47 | /* CPM interrupt vector functions. |
48 | */ | 48 | */ |
49 | struct cpm_action { | 49 | struct cpm_action { |
50 | void (*handler)(void *, struct pt_regs * regs); | 50 | void (*handler)(void *); |
51 | void *dev_id; | 51 | void *dev_id; |
52 | }; | 52 | }; |
53 | static struct cpm_action cpm_vecs[CPMVEC_NR]; | 53 | static struct cpm_action cpm_vecs[CPMVEC_NR]; |
54 | static irqreturn_t cpm_interrupt(int irq, void * dev, struct pt_regs * regs); | 54 | static irqreturn_t cpm_interrupt(int irq, void * dev); |
55 | static irqreturn_t cpm_error_interrupt(int irq, void *dev, struct pt_regs * regs); | 55 | static irqreturn_t cpm_error_interrupt(int irq, void *dev); |
56 | static void alloc_host_memory(void); | 56 | static void alloc_host_memory(void); |
57 | /* Define a table of names to identify CPM interrupt handlers in | 57 | /* Define a table of names to identify CPM interrupt handlers in |
58 | * /proc/interrupts. | 58 | * /proc/interrupts. |
@@ -205,7 +205,7 @@ cpm_interrupt_init(void) | |||
205 | * Get the CPM interrupt vector. | 205 | * Get the CPM interrupt vector. |
206 | */ | 206 | */ |
207 | int | 207 | int |
208 | cpm_get_irq(struct pt_regs *regs) | 208 | cpm_get_irq(void) |
209 | { | 209 | { |
210 | int cpm_vec; | 210 | int cpm_vec; |
211 | 211 | ||
@@ -222,7 +222,7 @@ cpm_get_irq(struct pt_regs *regs) | |||
222 | /* CPM interrupt controller cascade interrupt. | 222 | /* CPM interrupt controller cascade interrupt. |
223 | */ | 223 | */ |
224 | static irqreturn_t | 224 | static irqreturn_t |
225 | cpm_interrupt(int irq, void * dev, struct pt_regs * regs) | 225 | cpm_interrupt(int irq, void * dev) |
226 | { | 226 | { |
227 | /* This interrupt handler never actually gets called. It is | 227 | /* This interrupt handler never actually gets called. It is |
228 | * installed only to unmask the CPM cascade interrupt in the SIU | 228 | * installed only to unmask the CPM cascade interrupt in the SIU |
@@ -237,7 +237,7 @@ cpm_interrupt(int irq, void * dev, struct pt_regs * regs) | |||
237 | * tests in the interrupt handler. | 237 | * tests in the interrupt handler. |
238 | */ | 238 | */ |
239 | static irqreturn_t | 239 | static irqreturn_t |
240 | cpm_error_interrupt(int irq, void *dev, struct pt_regs *regs) | 240 | cpm_error_interrupt(int irq, void *dev) |
241 | { | 241 | { |
242 | return IRQ_HANDLED; | 242 | return IRQ_HANDLED; |
243 | } | 243 | } |
@@ -246,11 +246,11 @@ cpm_error_interrupt(int irq, void *dev, struct pt_regs *regs) | |||
246 | * request_irq() to the handler prototype required by cpm_install_handler(). | 246 | * request_irq() to the handler prototype required by cpm_install_handler(). |
247 | */ | 247 | */ |
248 | static irqreturn_t | 248 | static irqreturn_t |
249 | cpm_handler_helper(int irq, void *dev_id, struct pt_regs *regs) | 249 | cpm_handler_helper(int irq, void *dev_id) |
250 | { | 250 | { |
251 | int cpm_vec = irq - CPM_IRQ_OFFSET; | 251 | int cpm_vec = irq - CPM_IRQ_OFFSET; |
252 | 252 | ||
253 | (*cpm_vecs[cpm_vec].handler)(dev_id, regs); | 253 | (*cpm_vecs[cpm_vec].handler)(dev_id); |
254 | 254 | ||
255 | return IRQ_HANDLED; | 255 | return IRQ_HANDLED; |
256 | } | 256 | } |
@@ -267,8 +267,7 @@ cpm_handler_helper(int irq, void *dev_id, struct pt_regs *regs) | |||
267 | * request_irq() or cpm_install_handler(). | 267 | * request_irq() or cpm_install_handler(). |
268 | */ | 268 | */ |
269 | void | 269 | void |
270 | cpm_install_handler(int cpm_vec, void (*handler)(void *, struct pt_regs *regs), | 270 | cpm_install_handler(int cpm_vec, void (*handler)(void *), void *dev_id) |
271 | void *dev_id) | ||
272 | { | 271 | { |
273 | int err; | 272 | int err; |
274 | 273 | ||