Move the enable of timer 2 to avoid needing the extra if() check.
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>
devpriv->b_Timer2Mode = APCI3120_COUNTER;
devpriv->b_Timer2Interrupt = 1;
+
+ apci3120_timer_enable(dev, 2, true);
}
}
- if (!devpriv->us_UseDma && cmd->stop_src == TRIG_COUNT)
- apci3120_timer_enable(dev, 2, true);
-
switch (mode) {
case 1:
apci3120_timer_enable(dev, 0, true);