ARM: i.MX: ocotp: Fix error bit handling
Instead of returning an error when a locked region is read, fill
the result with 0xbadabada to indicate a locked region is read.
This way a md -s /dev/imx-ocotp does not abort when it encounters
locked regions.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 01cf83b commit 09db5f43f9f36440fcdcf6fbc21257338053bd1c
@Sascha Hauer Sascha Hauer authored on 5 Feb 2016
Showing 1 changed file
View
arch/arm/mach-imx/ocotp.c