From: H Hartley Sweeten Date: Tue, 4 Mar 2014 18:29:23 +0000 (-0700) Subject: staging: comedi: pcl818: fix board resource region request X-Git-Tag: v3.15-rc1~139^2~680 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80cc64863aed80efdf89fcc9b30e7940683cb916;p=pandora-kernel.git staging: comedi: pcl818: fix board resource region request Some of the PCL-818 compatible boards have a FIFO that can be used when running analog input async commands. This FIFO increased the resource range used by the driver. Request the correct resources used by the board even if the FIFO is not used. This prevents another driver from trying to use the I/O space. Modify the attach so that the 'usefifo' flag is only set if we have and IRQ, the board has a FIFO, and the user wahts to use it. Fix pcl818_reset() so that the FIFO is always flushed and disabled if it exists. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed