commit | 2f39f68cec0a19c0371c1e7cb149159810e87f64 | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <andy.shevchenko@gmail.com> | Mon May 10 12:50:32 2021 +0300 |
committer | Pavel Machek <pavel@ucw.cz> | Fri May 28 12:00:13 2021 +0200 |
tree | fdc69ec3acd8841aaaca429086603341f938c4cc | |
parent | 99be74f61cb0292b518f5e6d7e5c6611555c2ec7 [diff] |
leds: lm3532: Make error handling more robust It's easy to miss necessary clean up, e.g. firmware node reference counting, during error path in ->probe(). Make it more robust by moving to a single point of return. Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>