diff options
| author | Linus Walleij <[email protected]> | 2018-12-06 13:43:43 +0100 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2018-12-11 01:04:08 +0000 |
| commit | d03c63dbcaa1ee570d0435a7f79c7083ffb59245 (patch) | |
| tree | 62ff650c161160ca4a524af4910b9aab5f1b98ab /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | fe6c473e3e41114301bfbf5710be56bf0eb233dc (diff) | |
regulator: max77686: Let core handle GPIO descriptor
Use the gpiod_get_from_of_node() rather than the devm_*
version so that the regulator core can handle the lifecycle
of these descriptors.
Fix up the errorpath so that we free this descriptor if
an error occurs in the callback. Rely on the regulator
core to deal with it after this point: a previous patch
fixed up the regulator core to properly dispose any
GPIO descriptors once you call regulator_register().
Fixes: 96392c3d8ca4 ("regulator: max77686: Pass descriptor instead of GPIO number")
Signed-off-by: Linus Walleij <[email protected]>
Reviewed-by: Marek Szyprowski <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Reviewed-by: Charles Keepax <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions