diff options
| author | Heiko Stuebner <[email protected]> | 2020-06-24 01:30:09 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2020-06-27 13:00:26 +0100 |
| commit | d0389d4ed3c5a298939646b5d59bd5ad4ce5491f (patch) | |
| tree | 2d5fa25d24a9a33ea6633ebc3f43ad9f81a00838 /tools/perf/scripts/python | |
| parent | f11d59d87b8622d4cf9f856c0b8029fb030d8612 (diff) | |
iio: adc: rockchip_saradc: move all of probe to devm-functions
Parts of the saradc probe rely on devm functions and later parts do not.
This makes it more difficult to for example enable triggers via their
devm-functions and would need more undo-work in remove.
So to make life easier for the driver, move the rest of probe calls
also to their devm-equivalents.
This includes moving the clk- and regulator-disabling to a devm_action
so that they gets disabled both during remove and in the error case
in probe, after the action is registered.
Signed-off-by: Heiko Stuebner <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions