]> git.karo-electronics.de Git - linux-beck.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)
commit079933dbcb02132cc48ba052882fe0a9e3b0b762
tree6064c74276450d1b18d198fad0eb4dfa86f737cd
parentc762ff1f7e3b09293c22ce62135ef550c1b3327c
[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