From: H Hartley Sweeten Date: Wed, 23 Apr 2014 22:57:19 +0000 (-0700) Subject: staging: comedi: amplc_pci224: only calc the pacer divisors once X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~1301 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43268701b50e7dbbad767e118e0023c703c7e3da;p=pandora-kernel.git staging: comedi: amplc_pci224: only calc the pacer divisors once When the cmd->scan_begin_src == TRIG_TIMER the divisors needed to generate the pacer time are calculated in the (*do_cmdtest) to validate the cmd->scan_begin_arg. The core always does the (*do_cmdtest) before the (*do_cmd) so there is no reason to recalc the divisors. Signed-off-by: H Hartley Sweeten Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed