diff options
| author | Linus Walleij <[email protected]> | 2018-12-06 13:43:45 +0100 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2018-12-11 01:04:17 +0000 |
| commit | cb28ee388e465a956b05ada682f9ef90e776a9b7 (patch) | |
| tree | ce072b8f8f8bac2520a923beded354992bed848c /tools/perf/util/c++/clang.cpp | |
| parent | ec757001c818c175e6b610e8ef80c2a25d1ed1a5 (diff) | |
gpio: devres: Handle nonexclusive GPIOs
When we get a nonexeclusive GPIO descriptor using managed
resources, we should only add it to the list of managed
resources once: on the first user. Augment the
devm_gpiod_get_index() and devm_gpiod_get_from_of_node()
calls to account for this by checking if the descriptor
is already resource managed before we proceed to allocate
a new resource management struct.
Fixes: b0ce7b29bfcd ("regulator/gpio: Allow nonexclusive GPIO access")
Reported-by: Marek Szyprowski <[email protected]>
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/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions