summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/stm32_iwdg.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-07-10 21:00:11 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-07-11 08:43:34 +0200
commit9f30aa3f143eda22ba3cf9e36c05213239a2fe83 (patch)
tree4e2ac130854c40e8f52cce827383106d6d25553e /drivers/watchdog/stm32_iwdg.c
parentbd7014fc490e8ca56dc9d418b07f5b9dbc65283d (diff)
downloadbarebox-9f30aa3f143eda22ba3cf9e36c05213239a2fe83.tar.gz
barebox-9f30aa3f143eda22ba3cf9e36c05213239a2fe83.tar.xz
watchdog: stm32_iwdg: remove left-over comment
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@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/watchdog/stm32_iwdg.c')
-rw-r--r--drivers/watchdog/stm32_iwdg.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/watchdog/stm32_iwdg.c b/drivers/watchdog/stm32_iwdg.c
index 34912ae00e..7c2dc077af 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, &reg);
if (ret)
return ret;