]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
dz: don't panic() when request_irq() fails
authorMaciej W. Rozycki <macro@linux-mips.org>
Thu, 7 Feb 2008 08:15:08 +0000 (00:15 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 7 Feb 2008 16:42:24 +0000 (08:42 -0800)
commit0ba137e23e8d8f5cb15778b44be281c5687afc49
tree0ee61cee68b30e114b121967ac523e288417a56d
parentdbab81281d3227af3d8a04aa748c5f41befa5d43
dz: don't panic() when request_irq() fails

Well, panic() is a little bit undue if request_irq() fails; there is probably
no need to justify it any further.  Handle the case gracefully, by
unregistering the driver.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/dz.c