From: Lothar Waßmann Date: Mon, 12 Oct 2015 12:04:28 +0000 (+0200) Subject: arm: mxs: ocotp: disable OCOTP clock after access is finished X-Git-Tag: KARO-TX6UL-2015-10-23~16 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=a73e7bcd19f21c973395bd5ef9ccb23028c28906;ds=sidebyside arm: mxs: ocotp: disable OCOTP clock after access is finished --- diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c index 5fb86ca6b2..4f222e6f99 100644 --- a/drivers/misc/mxc_ocotp.c +++ b/drivers/misc/mxc_ocotp.c @@ -80,6 +80,7 @@ static int finish_access(struct ocotp_regs *regs, const char *caller) err = !!(readl(®s->ctrl) & BM_CTRL_ERROR); clear_error(regs); + enable_ocotp_clk(0); if (err) { printf("mxc_ocotp %s(): Access protect error\n", caller);