diff options
author | Magnus Damm <damm@opensource.se> | 2010-03-10 04:31:01 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-03-19 03:45:31 -0400 |
commit | 01e9651a21bc0e6731da733593e4aaf4cf46b5e5 (patch) | |
tree | 133befa54fca69f3b4c4bc1ffcc621bb5fb4f9b0 /include/linux/sh_intc.h | |
parent | 39710479303fd3affb3e204e9a7a75cc676977b5 (diff) |
sh: add INTC out of memory error handling
Extend the INTC code to warn and return an error code
in the case of memory allocation failure.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/linux/sh_intc.h')
-rw-r--r-- | include/linux/sh_intc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sh_intc.h b/include/linux/sh_intc.h index 51d288d8ac88..df3777035936 100644 --- a/include/linux/sh_intc.h +++ b/include/linux/sh_intc.h | |||
@@ -92,7 +92,7 @@ struct intc_desc symbol __initdata = { \ | |||
92 | prio_regs, sense_regs, ack_regs), \ | 92 | prio_regs, sense_regs, ack_regs), \ |
93 | } | 93 | } |
94 | 94 | ||
95 | void __init register_intc_controller(struct intc_desc *desc); | 95 | int __init register_intc_controller(struct intc_desc *desc); |
96 | int intc_set_priority(unsigned int irq, unsigned int prio); | 96 | int intc_set_priority(unsigned int irq, unsigned int prio); |
97 | 97 | ||
98 | int reserve_irq_vector(unsigned int irq); | 98 | int reserve_irq_vector(unsigned int irq); |