cs5535-mfgpt: reuse timers that have never been set up
authorJens Rottmann <JRottmann@LiPPERTEmbedded.de>
Wed, 11 Aug 2010 01:03:12 +0000 (18:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:20 +0000 (08:59 -0700)
commitecd6269174c04da5efbd17d6bff793e428eb45ef
tree9dbf1a8b0843ffc52f9f2fb9202acd096db3c755
parente73790a57abc1320b3c3a94da43ae24359687d7c
cs5535-mfgpt: reuse timers that have never been set up

The MFGPT hardware may be set up only once, therefore
cs5535_mfgpt_free_timer() didn't re-set the timer's "avail" bit.  However
if a timer is freed before it has actually been in use then it may be made
available again.

Signed-off-by: Jens Rottmann <JRottmann@LiPPERTEmbedded.de>
Acked-by: Andres Salomon <dilinger@queued.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jordan Crouse <jordan@cosmicpenguin.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/cs5535-mfgpt.c