rtc: imxdi: use the security violation interrupt
authorMartin Kaiser <martin@kaiser.cx>
Tue, 3 Jan 2017 18:49:50 +0000 (19:49 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 11 Jan 2017 16:23:05 +0000 (17:23 +0100)
commitfef1eeb1a787653aa3fa028be1d898609bf69094
tree8416bfa744e7cef2fd48964a0b77cf748a1604c9
parent644d4c366b28faaee5d21dc1575a8b9b95a73cac
rtc: imxdi: use the security violation interrupt

The DryIce chipset has a dedicated security violation interrupt that is
triggered for security violations (if configured to do so).  According
to the publicly available imx258 reference manual, irq 56 is used for
this interrupt.

If an irq number is provided for the security violation interrupt,
install the same handler that we're already using for the "normal"
interrupt.

imxdi->irq is used only in the probe function, make it a local variable.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-imxdi.c