Title: [6528] trunk/drivers/char/bfin_simple_timer.c: remove 16bit limit on period/width pointed out by Vivek Vaid in the forums
- Revision
- 6528
- Author
- vapier
- Date
- 2009-06-02 01:55:20 -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: trunk/drivers/char/bfin_simple_timer.c (6527 => 6528)
--- trunk/drivers/char/bfin_simple_timer.c 2009-06-02 05:07:49 UTC (rev 6527)
+++ trunk/drivers/char/bfin_simple_timer.c 2009-06-02 06:55:20 UTC (rev 6528)
@@ -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