X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=sound%2Fcore%2Frtctimer.c;h=7cd5e8f5d4cebc2375f7303ce00d48e09046fd96;hb=96b9709c9b47c1f9e8fd80e756e8eddcba68e818;hp=9f7b32e1ccdeb29a7122aaea0f485a0dafa144c5;hpb=691ce26e4066147ab75366307c5c65d26c7fd805;p=linux-2.6-omap-h63xx.git diff --git a/sound/core/rtctimer.c b/sound/core/rtctimer.c index 9f7b32e1ccd..7cd5e8f5d4c 100644 --- a/sound/core/rtctimer.c +++ b/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;