The reset reason part of the code is based on the i.MX6's and duplicated a comment from there, which isn't applicable to the STM32. Delete it. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- drivers/watchdog/stm32_iwdg.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/watchdog/stm32_iwdg.c b/drivers/watchdog/stm32_iwdg.c index 34912ae00eea..7c2dc077af5b 100644 --- a/drivers/watchdog/stm32_iwdg.c +++ b/drivers/watchdog/stm32_iwdg.c @@ -170,11 +170,6 @@ static int stm32_set_reset_reason(struct regmap *rcc) int ret; int i, instance = 0; - /* - * SRSR register captures ALL reset event that occured since - * POR, so we need to clear it to make sure we only caputre - * the latest one. - */ ret = regmap_read(rcc, RCC_MP_RSTSCLRR, ®); if (ret) return ret; -- 2.20.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox