Skip to content
Commit 0eb3fba8 authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Lee Jones
Browse files

backlight: adp5520: Fix error handling in adp5520_bl_probe()



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: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent cc21942b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment