Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7e1ce34f authored by Axel Lin's avatar Axel Lin Committed by Richard Purdie
Browse files

leds: leds-lp3944: properly handle lp3944_configure fail in lp3944_probe



In current implementation, lp3944_probe return 0 even if lp3944_configure fail.
Therefore, led_classdev_unregister will be executed twice
( in error handling of lp3944_configure and lp3944_remove ).
This patch properly handles lp3944_configure fail in lp3944_probe.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Acked-by: default avatarAntonio Ospite <ospite@studenti.unina.it>
Signed-off-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
parent 569762ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment