From 1c761690e5d621939958245eae62468639e71eb9 Mon Sep 17 00:00:00 2001 From: vignesh babu Date: Thu, 22 Feb 2007 13:23:01 +0100 Subject: [PATCH] --- yaml --- r: 56109 b: refs/heads/master c: 62e96a1caab86e0d3688d59fcb6f682cc52d4917 h: refs/heads/master i: 56107: 279e15dadb37d3ef23991a396eea5880c236cfd4 v: v3 --- [refs] | 2 +- trunk/sound/core/rtctimer.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 1cd88b448b42..ed7aab53d127 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ac519028a4e7b919eaff65a1535824259df326c6 +refs/heads/master: 62e96a1caab86e0d3688d59fcb6f682cc52d4917 diff --git a/trunk/sound/core/rtctimer.c b/trunk/sound/core/rtctimer.c index 9f7b32e1ccde..7cd5e8f5d4ce 100644 --- a/trunk/sound/core/rtctimer.c +++ b/trunk/sound/core/rtctimer.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -129,7 +130,7 @@ static int __init rtctimer_init(void) struct snd_timer *timer; if (rtctimer_freq < 2 || rtctimer_freq > 8192 || - (rtctimer_freq & (rtctimer_freq - 1)) != 0) { + !is_power_of_2(rtctimer_freq)) { snd_printk(KERN_ERR "rtctimer: invalid frequency %d\n", rtctimer_freq); return -EINVAL;