From d27ebee0702de93d1a029990538ebce1670f1919 Mon Sep 17 00:00:00 2001 From: Wolfgang Reissnegger Date: Thu, 23 Jun 2016 11:04:36 -0700 Subject: [PATCH] [sam34][timer] Fix ops check in TCIOC_STOP. --- drivers/timers/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/timers/timer.c b/drivers/timers/timer.c index 6bcbc3b634..0186e9977f 100644 --- a/drivers/timers/timer.c +++ b/drivers/timers/timer.c @@ -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); }