diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2020-03-23 16:00:06 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-23 20:05:23 +0100 |
commit | bbde5709ee4f60a43b7372545454947044655728 (patch) | |
tree | 122b55772c4af176a7f753a20c4bf1aaf115ec26 /drivers/nvmem/Makefile | |
parent | nvmem: sprd: Determine double data programming from device data (diff) | |
download | linux-bbde5709ee4f60a43b7372545454947044655728.tar.xz linux-bbde5709ee4f60a43b7372545454947044655728.zip |
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 'drivers/nvmem/Makefile')
0 files changed, 0 insertions, 0 deletions