diff options
author | Anson Huang | 2020-03-23 15:00:06 +0000 |
---|---|---|
committer | Greg Kroah-Hartman | 2020-03-23 20:05:23 +0100 |
commit | bbde5709ee4f60a43b7372545454947044655728 (patch) | |
tree | 122b55772c4af176a7f753a20c4bf1aaf115ec26 /block/blk-throttle.c | |
parent | 4bd5a15d933c1703910c756d961dbbd2e6d52181 (diff) |
nvmem: mxs-ocotp: Use devm_add_action_or_reset() for cleanup
Use devm_add_action_or_reset() for cleanup to call clk_unprepare(),
which can simplify the error handling in .probe, and .remove callback
can be dropped.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200323150007.7487-5-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block/blk-throttle.c')
0 files changed, 0 insertions, 0 deletions