mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-16 11:32:41 +00:00
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>
This commit is contained in:
parent
3971047930
commit
01e9651a21
2 changed files with 29 additions and 2 deletions
|
@ -92,7 +92,7 @@ struct intc_desc symbol __initdata = { \
|
|||
prio_regs, sense_regs, ack_regs), \
|
||||
}
|
||||
|
||||
void __init register_intc_controller(struct intc_desc *desc);
|
||||
int __init register_intc_controller(struct intc_desc *desc);
|
||||
int intc_set_priority(unsigned int irq, unsigned int prio);
|
||||
|
||||
int reserve_irq_vector(unsigned int irq);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue