From a73e7bcd19f21c973395bd5ef9ccb23028c28906 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Mon, 12 Oct 2015 14:04:28 +0200 Subject: [PATCH] arm: mxs: ocotp: disable OCOTP clock after access is finished --- drivers/misc/mxc_ocotp.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.2