]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/misc/mxc_ocotp.c
arm: mxs: ocotp: disable OCOTP clock after access is finished
[karo-tx-uboot.git] / drivers / misc / mxc_ocotp.c
index 5fb86ca6b2f982d894612e7e06503d818f7c0933..4f222e6f991a28bf5418ba42e165eb67ee22ebd1 100644 (file)
@@ -80,6 +80,7 @@ static int finish_access(struct ocotp_regs *regs, const char *caller)
 
        err = !!(readl(&regs->ctrl) & BM_CTRL_ERROR);
        clear_error(regs);
+       enable_ocotp_clk(0);
 
        if (err) {
                printf("mxc_ocotp %s(): Access protect error\n", caller);