leds: change ledtrig-timer to use activated flag
authorShuah Khan <shuahkhan@gmail.com>
Tue, 29 May 2012 22:07:28 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:31 +0000 (16:22 -0700)
commit1381187991a196a8a7d046e97bd50eec6c37e8df
treef84e83866b4d15cad012cb40c5b653ce4c49a7d9
parent03c091e5b726ada6aaf9af1d0e973679099101e4
leds: change ledtrig-timer to use activated flag

Change existing timer trigger to use the new ->activated flag to set
activate successful status in activate routine and check it in deactivate
routine to do cleanup.

Signed-off-by: Shuah Khan <shuahkhan@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/leds/ledtrig-timer.c