From: Christian Gmeiner Date: Wed, 15 Jun 2011 22:08:22 +0000 (-0700) Subject: drivers/misc/cs5535-mfgpt.c: fix wrong if condition X-Git-Tag: v3.0-rc4~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bbd61fb9726808e72ab2aa440401f6e5e1aa8f7;p=pandora-kernel.git drivers/misc/cs5535-mfgpt.c: fix wrong if condition Fix the wrong `if' condition for the check if the requested timer is available. The bitmap avail is used to store if a timer is used already. test_bit() is used to check if the requested timer is available. If a bit in the avail bitmap is set it means that the timer is available. The runtime effect would be that allocating a specific timer always fails (versus telling cs5535_mfgpt_alloc_timer to allocate the first available timer, which works). Signed-off-by: Christian Gmeiner Acked-by: Andres Salomon Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed