]> git.karo-electronics.de Git - karo-tx-linux.git/commit
leds: change ledtrig-timer to use activated flag
authorShuah Khan <shuahkhan@gmail.com>
Thu, 3 May 2012 05:44:26 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:48 +0000 (15:46 +1000)
commit5c77194c71b53c17f6924f995246c72887c10676
treed75c0011dc43766d9dbf561c37460dbed758a7c9
parentf9bad05e9eef301f0ed33b3d9907d23b5c0776a5
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/leds/ledtrig-timer.c