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@xxxxxxx>
---
drivers/nvmem/mxs-ocotp.c | 30 +++++++++++-------------------
1 file changed, 11 insertions(+), 19 deletions(-)