]> git.itanic.dy.fi Git - linux-stable/commit
backlight: adp5520: Fix error handling in adp5520_bl_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 8 Jul 2016 22:19:51 +0000 (01:19 +0300)
committerSasha Levin <alexander.levin@verizon.com>
Thu, 7 Dec 2017 02:20:12 +0000 (21:20 -0500)
commit7b4079cf2ee13c811de80d1abcea6bfc7ba50c1a
treebd238b386309170bfa93175736f92c2014deb383
parent02583f005c715177a0332755da321b7d658bb97b
backlight: adp5520: Fix error handling in adp5520_bl_probe()

[ Upstream commit 0eb3fba8c68275f0122f65f7316efaaf86448016 ]

If adp5520_bl_setup() fails, sysfs group left unremoved.

By the way, fix overcomplicated assignement of error code.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/video/backlight/adp5520_bl.c