X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=sound%2Fcore%2Frtctimer.c;h=97b30fb4c361193b1ef65821a46dea9f67736d9b;hb=0988c37c248e824953d95a11412696c348dbca91;hp=9f7b32e1ccdeb29a7122aaea0f485a0dafa144c5;hpb=af768c6711de615abf9c679732a2f8245a4c286c;p=linux-2.6 diff --git a/sound/core/rtctimer.c b/sound/core/rtctimer.c index 9f7b32e1cc..97b30fb4c3 100644 --- a/sound/core/rtctimer.c +++ b/sound/core/rtctimer.c @@ -20,10 +20,10 @@ * */ -#include #include #include #include +#include #include #include @@ -129,7 +129,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;