]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: me4000: refactor request_irq() during attach
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 5 Dec 2013 20:43:23 +0000 (13:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Dec 2013 21:07:15 +0000 (13:07 -0800)
commitd3e5955c585625be9c78ec6e038451745cc3703a
tree6c21b1a3a3b97813bbd3765ecc63e4c2eba741bf
parent39aa13acf1d42a3be805df9c2fb79a1a4dbd18e5
staging: comedi: me4000: refactor request_irq() during attach

Do the request_irq() before setting up the subdevices. This removes an
indent level and makes the code a bit cleaner.

Also, remove the dev_warn() noise about the irq.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/me4000.c