sh: add INTC out of memory error handling
authorMagnus Damm <damm@opensource.se>
Wed, 10 Mar 2010 09:31:01 +0000 (09:31 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 19 Mar 2010 07:45:31 +0000 (16:45 +0900)
commit01e9651a21bc0e6731da733593e4aaf4cf46b5e5
tree133befa54fca69f3b4c4bc1ffcc621bb5fb4f9b0
parent39710479303fd3affb3e204e9a7a75cc676977b5
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>
drivers/sh/intc.c
include/linux/sh_intc.h