]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: flash led class: Fix of_node release in probe() error path
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 5 Oct 2016 07:13:10 +0000 (04:13 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 24 Oct 2016 20:36:28 +0000 (18:36 -0200)
commit82f093f0be7669bbda88089998bebecf6f50f9eb
tree6064c74276450d1b18d198fad0eb4dfa86f737cd
parentfbc5f8bbc931aab4038b657a146df688abf34956
[media] v4l: flash led class: Fix of_node release in probe() error path

The sub-device's OF node was used (of_node_get()) if it was set, but
device's OF node was always put. Fix this.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/v4l2-core/v4l2-flash-led-class.c