leds-lp5523: turn off the LED engines on unloading the driver
authorKim, Milo <Milo.Kim@ti.com>
Wed, 12 Sep 2012 12:16:00 +0000 (20:16 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Thu, 13 Sep 2012 03:48:34 +0000 (11:48 +0800)
commit23301b7f1b8910fb3ba84935edbf665808f53871
tree23713681b05dc740ee0fdf59f3c2f2b7f400df24
parente0e021600e3ebb80d6539cc5f8de8f9d19687e80
leds-lp5523: turn off the LED engines on unloading the driver

The LP5523 has 3 engines which are used for running LED patterns.
These engines should be off while unloading the driver.
Obviously, LP5523 platform data are used for releasing the resource
such like enable()/release_resource(), but these are not mandatory.
Therefore this patch is required without the platform data dependency.

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