Title: [6529] branches/2009R1/drivers/char/bfin_simple_timer.c: remove 16bit limit on period/width pointed out by Vivek Vaid in the forums
Revision
6529
Author
vapier
Date
2009-06-02 01:55:38 -0500 (Tue, 02 Jun 2009)

Log Message

remove 16bit limit on period/width pointed out by Vivek Vaid in the forums

Modified Paths

Diff

Modified: branches/2009R1/drivers/char/bfin_simple_timer.c (6528 => 6529)


--- branches/2009R1/drivers/char/bfin_simple_timer.c	2009-06-02 06:55:20 UTC (rev 6528)
+++ branches/2009R1/drivers/char/bfin_simple_timer.c	2009-06-02 06:55:38 UTC (rev 6529)
@@ -79,8 +79,6 @@
 		if (arg < 2)
 			return -EFAULT;
 		n = ((get_sclk() / 1000) * arg) / 1000;
-		if (n > 0xFFFF)
-			n = 0xFFFF;
 		set_gptimer_period(timer_code[minor].id, n);
 		set_gptimer_pwidth(timer_code[minor].id, n >> 1);
 		pr_debug(DRV_NAME ": TIMER_SET_PERIOD: arg=%lu, period=%lu, width=%lu\n",
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to