diff options
author | 2020-01-13 14:14:26 +0100 | |
---|---|---|
committer | 2020-01-18 14:32:01 +0000 | |
commit | d344961f55fd6321937d3bc92ad3930dea31189f (patch) | |
tree | d4736fa663aebd430adcd349b8b4310270df7a0c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iio: dac: stm32-dac: use reset controller only at probe time (diff) | |
download | linux-rng-d344961f55fd6321937d3bc92ad3930dea31189f.tar.xz linux-rng-d344961f55fd6321937d3bc92ad3930dea31189f.zip |
iio: dac: stm32-dac: better handle reset controller failures
Use devm_reset_control_get_optional_exclusive() instead of
devm_reset_control_get_exclusive() as reset controller is optional.
Nevertheless if reset controller is expected but reports an
error, propagate the error code to the caller. In such case
a nice error trace is emitted unless we're deferring the probe
operation.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions