Commit 12c4b878 authored by Sakari Ailus's avatar Sakari Ailus Committed by Jacek Anaszewski

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: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
parent e626c325
...@@ -743,6 +743,7 @@ static int as3645a_remove(struct i2c_client *client) ...@@ -743,6 +743,7 @@ static int as3645a_remove(struct i2c_client *client)
as3645a_set_control(flash, AS_MODE_EXT_TORCH, false); as3645a_set_control(flash, AS_MODE_EXT_TORCH, false);
v4l2_flash_release(flash->vf); v4l2_flash_release(flash->vf);
v4l2_flash_release(flash->vfind);
led_classdev_flash_unregister(&flash->fled); led_classdev_flash_unregister(&flash->fled);
led_classdev_unregister(&flash->iled_cdev); led_classdev_unregister(&flash->iled_cdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment