From: H Hartley Sweeten Date: Mon, 9 Dec 2013 22:30:51 +0000 (-0700) Subject: staging: comedi: pcmmio: tidy up the irq request X-Git-Tag: v3.14-rc1~150^2~327 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e6bed0b523717aa93f08ce8fe679a5c48c81cfd;p=pandora-kernel.git staging: comedi: pcmmio: tidy up the irq request The for () loop that does the request_irq() in this driver is a bit of an overkill. The code appears to have been copied from the pcmuio driver which supports boards with 1 or 2 ASIC devices. The board supported by this driver only has 1 ASIC. Simplify the code and store the irq number in the comedi_device. This allows the core to automatically do the free_irq() when the driver is detached. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed