summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-05-21 14:21:01 +0300
committerPavel Machek <pavel@ucw.cz>2021-06-24 01:55:28 +0300
commitee78b9360e14c276f5ceaa4a0d06f790f04ccdad (patch)
tree92a09f0454301b93c14fa6c43dfc606a28058755 /tools/perf/util/scripting-engines/trace-event-python.c
parent96a30960a2c5246c8ffebe8a3c9031f9df094d97 (diff)
downloadlinux-ee78b9360e14c276f5ceaa4a0d06f790f04ccdad.tar.xz
leds: ktd2692: Fix an error handling path
In 'ktd2692_parse_dt()', if an error occurs after a successful 'regulator_enable()' call, we should call 'regulator_enable()'. This is the same in 'ktd2692_probe()', if an error occurs after a successful 'ktd2692_parse_dt()' call. Instead of adding 'regulator_enable()' in several places, implement a resource managed solution and simplify the remove function accordingly. Fixes: b7da8c5c725c ("leds: Add ktd2692 flash LED driver") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions