projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e626c32
)
as3645a: Unregister indicator LED on device unbind
author
Sakari Ailus
<sakari.ailus@linux.intel.com>
Fri, 22 Sep 2017 09:32:38 +0000
(12:32 +0300)
committer
Jacek Anaszewski
<jacek.anaszewski@gmail.com>
Sat, 23 Sep 2017 19:17:43 +0000
(21:17 +0200)
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>
drivers/leds/leds-as3645a.c
patch
|
blob
|
history
diff --git
a/drivers/leds/leds-as3645a.c
b/drivers/leds/leds-as3645a.c
index 605e0c64e974d41375b1e76ddf48b3d5cf663745..9a257f9693009c7ec3a163dc83e7c0b2e5839dde 100644
(file)
--- 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);