Module: xenomai-2.6
Branch: master
Commit: a7b94fc631816e64988f32247edc788e7c70efd1
URL:    
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=a7b94fc631816e64988f32247edc788e7c70efd1

Author: Matthew Lindner <mlind...@daifukuwebb.com>
Date:   Mon Oct 20 17:24:45 2014 -0400

drivers/can: Properly initialize bittime

---

 ksrc/drivers/can/rtcan_raw_dev.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ksrc/drivers/can/rtcan_raw_dev.c b/ksrc/drivers/can/rtcan_raw_dev.c
index c5fd1b6..d305bab 100644
--- a/ksrc/drivers/can/rtcan_raw_dev.c
+++ b/ksrc/drivers/can/rtcan_raw_dev.c
@@ -219,6 +219,7 @@ static int rtcan_calc_bit_time(struct rtcan_device *dev,
     bt->phase_seg1 = tseg1 - bt->prop_seg;
     bt->phase_seg2 = tseg2;
     bt->sjw = 1;
+    bt->sam = 0;
     bt->brp = best_brp;
 
     /* real bit-rate */


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to