]> git.karo-electronics.de Git - karo-tx-linux.git/commit
leds-lp5523: set the brightness to 0 forcely on removing the driver
authorKim, Milo <Milo.Kim@ti.com>
Wed, 22 Aug 2012 07:32:45 +0000 (15:32 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Thu, 23 Aug 2012 02:12:49 +0000 (10:12 +0800)
commite5d1153a5e3aa6c8ce31436e81325c1b3c09ea18
tree64277f9242b3dc75e1391c9f3c9e42df79866066
parentf19a72b071799d8db00e77d872a7755d4f93a304
leds-lp5523: set the brightness to 0 forcely on removing the driver

Turning off the brightness of each channel is required
when removing the driver.

So use flush_work() rather than cancel_work_sync() to execute
remaining brightness works.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
drivers/leds/leds-lp5523.c