]> git.baikalelectronics.ru Git - kernel.git/commit
simserial, bail out when request_irq fails
authorJiri Slaby <jslaby@suse.cz>
Thu, 8 Mar 2012 20:01:19 +0000 (21:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 20:26:31 +0000 (12:26 -0800)
commit3a176e0fcdefe92e2917e50c12dca6a6401b498a
tree5a93e4e2a7bcb4431dc3777423c6bc3ac3e7b85c
parenta97976466598e847e284796783e96984512d86ce
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/ia64/hp/sim/simserial.c