rtc: imxdi: when locked, do not fail silently
authorJuergen Borleis <jbe@pengutronix.de>
Mon, 27 Apr 2015 13:59:51 +0000 (15:59 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 19 Jun 2015 18:03:21 +0000 (20:03 +0200)
commit9bb698c60a12d3b5db62f99a0874565c791e998b
tree29cc1d45d227b0ab8296e5f05d71fb28d9858936
parenta7c535e3a8e50e625750d2aa0ed4f84591ca7bfa
rtc: imxdi: when locked, do not fail silently

If the DryICE unit is locked it is impossible to set the time. Provide an
error message for this case.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Robert Schwebel <rsc@pengutronix.de>
[rsc: got NDA clearance from Freescale]
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-imxdi.c