From: H Hartley Sweeten Date: Wed, 25 Sep 2013 22:37:18 +0000 (-0700) Subject: staging: comedi: pcl726: fix the analog output range_table_list initialization X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~578 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=716343c43891dcb865bd9f2603e68804d3cc5660;p=pandora-kernel.git staging: comedi: pcl726: fix the analog output range_table_list initialization The analog output channels use jumpers on the board to individually set the range used. This driver uses the configuration options passed to the (*attach) function to setup the analog output subdevice range_table_list for each channel. The configuration options should be 'it->options[2 + i]' for each channel 'i' not '...[2 + 1]' for each channel. Fix the error and move the code so that the range_table_list is setup before the subdevice is initialized. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed