Skip to content
Commit f1b112af authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Stefan Roese
Browse files

watchdog: wdt-uclass.c: keep track of each device's running state



As a step towards handling all DM watchdogs in watchdog_reset(), use a
per-device flag to keep track of whether the device has been started
instead of a bit in gd->flags.

We will still need that bit to know whether we are past
initr_watchdog() and hence have populated gd->watchdog_dev -
incidentally, that is how it was used prior to commit 9c44ff1c.

Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
Signed-off-by: default avatarRasmus Villemoes <rasmus.villemoes@prevas.dk>
parent 3eaf6e2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment