[sam34][timer] Fix ops check in TCIOC_STOP.

This commit is contained in:
Wolfgang Reissnegger 2016-06-23 11:04:36 -07:00
parent fd1d874a8a
commit d27ebee070

View File

@ -258,7 +258,7 @@ static int timer_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
/* Stop the timer */
if (lower->ops->start)
if (lower->ops->stop)
{
ret = lower->ops->stop(lower);
}