X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=sound%2Fcore%2Frtctimer.c;h=97b30fb4c361193b1ef65821a46dea9f67736d9b;hb=58ec3b4db9eb5a28e3aec5f407a54e28f7039c19;hp=9f7b32e1ccdeb29a7122aaea0f485a0dafa144c5;hpb=4f404caf6791227754d67679d0b2350afc1ad522;p=linux-2.6-omap-h63xx.git diff --git a/sound/core/rtctimer.c b/sound/core/rtctimer.c index 9f7b32e1ccd..97b30fb4c36 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;