OSDN Git Service

[IA64] simserial, bail out when request_irq fails
authorJiri Slaby <jslaby@suse.cz>
Fri, 24 Feb 2012 11:10:18 +0000 (12:10 +0100)
committerTony Luck <tony.luck@intel.com>
Fri, 24 Feb 2012 22:26:05 +0000 (14:26 -0800)
commit0efb34f298b6b12dc9377159c8a6d1b7b73b03bf
tree0d62c76112826c7e52540c081384075061a32311
parentcb5348554bc715199e49dba4d6bcc58786b4a69c
[IA64] simserial, bail out when request_irq fails

Without this, the code succeeds when the port is opened by root and we
get unwanted interrupts storm on the first key stroke.

Instead of that, tell the user we failed and that we won't continue. I
suppose, the code was copied from the serial layer where we may want
to change the irq number, so we must allow open even of the failing
port. This is not the case for this driver at all.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/hp/sim/simserial.c