thermal: stm32: Disable interrupts at probe
authorPascal Paillet <p.paillet@st.com>
Fri, 10 Jan 2020 10:16:02 +0000 (11:16 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 27 Jan 2020 14:40:12 +0000 (15:40 +0100)
commit1f64fa365148f003e39b28a86ce3ada020ea3eec
tree3b9aca6cb83c735e122fac43b1bb0352ac35de1a
parentd4a7e0538fe957fc78187468fa404060da7fa6f4
thermal: stm32: Disable interrupts at probe

In case of CPU reset, the interrupts could be enabled at boot time.
Disable interrupts and clear flags.

Signed-off-by: Pascal Paillet <p.paillet@st.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200110101605.24984-4-p.paillet@st.com
drivers/thermal/st/stm_thermal.c