summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2017-09-22 12:32:38 +0300
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2017-09-23 21:17:43 +0200
commit12c4b878e71fa8b65bc479b2460765c7d1d81a26 (patch)
tree384da34851d6608af25a661d5e2cdc6d65eeeff6 /drivers/leds
parente626c325277531db15314b80610d1f5a1c2637b2 (diff)
downloadtalos-op-linux-12c4b878e71fa8b65bc479b2460765c7d1d81a26.tar.gz
talos-op-linux-12c4b878e71fa8b65bc479b2460765c7d1d81a26.zip
as3645a: Unregister indicator LED on device unbind
The indicator LED was registered in probe but was not removed in driver remove callback. Fix this. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-as3645a.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/leds-as3645a.c b/drivers/leds/leds-as3645a.c
index 605e0c64e974..9a257f969300 100644
--- a/drivers/leds/leds-as3645a.c
+++ b/drivers/leds/leds-as3645a.c
@@ -743,6 +743,7 @@ static int as3645a_remove(struct i2c_client *client)
as3645a_set_control(flash, AS_MODE_EXT_TORCH, false);
v4l2_flash_release(flash->vf);
+ v4l2_flash_release(flash->vfind);
led_classdev_flash_unregister(&flash->fled);
led_classdev_unregister(&flash->iled_cdev);
OpenPOWER on IntegriCloud