diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2019-08-25 17:58:40 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-08-28 13:33:42 +0200 |
commit | 935446094311ccbc6888dc2dbe238b764a8e073e (patch) | |
tree | 325c999d1d692de382b6b6803daec0e8ed0b6f8c /drivers/watchdog | |
parent | 06a912b046aa0661f6eae29ea26bc883d5d6041b (diff) | |
download | barebox-935446094311ccbc6888dc2dbe238b764a8e073e.tar.gz barebox-935446094311ccbc6888dc2dbe238b764a8e073e.tar.xz |
reset_source: drop reset_source_set_instance()
The semantic of reset_source_set_instance() required a separate call to
reset_source_set() (or reset_source_set_priority()) and checked right
usage only using the type. Make the set of functions a bit easier to use
by dropping reset_source_set_instance() and instead introduce a function
that can set all relevant parameters (source, priority and instance) in
one go.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/stm32_iwdg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/watchdog/stm32_iwdg.c b/drivers/watchdog/stm32_iwdg.c index 7c2dc077af..20536cb4ab 100644 --- a/drivers/watchdog/stm32_iwdg.c +++ b/drivers/watchdog/stm32_iwdg.c @@ -182,8 +182,7 @@ static int stm32_set_reset_reason(struct regmap *rcc) } } - reset_source_set_priority(type, RESET_SOURCE_DEFAULT_PRIORITY); - reset_source_set_instance(type, instance); + reset_source_set_prinst(type, RESET_SOURCE_DEFAULT_PRIORITY, instance); pr_info("STM32 RCC reset reason %s (MP_RSTSR: 0x%08x)\n", reset_source_name(), reg); |