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>
This commit is contained in:
parent
e626c32527
commit
12c4b878e7
|
@ -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 New Issue