mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Jacek Anaszewski <[email protected]>
This commit is contained in:
parent
e626c32527
commit
12c4b878e7
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue