diff options
author | Nikita Shubin <n.shubin@yadro.com> | 2021-10-01 11:31:16 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-10-11 09:59:29 +0530 |
commit | 516161c46f0d3c73bf6a57e551d6e2489912fc03 (patch) | |
tree | a2186bbe2c1ac5817c9cce98cd79519e5e7a4752 /lib/utils/sys/htif.c | |
parent | 754d51192b6bf6a4afd9d46c5f736a9f6dd1b404 (diff) |
lib: sbi: convert reset to list
To support different handlers for different types of resets, we are
adding a sbi_list of restart handlers.
Instead of sbi_system_reset_set_device we use
sbi_system_reset_add_device to reflect the actual meaning.
Signed-off-by: Nikita Shubin <n.shubin@yadro.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib/utils/sys/htif.c')
-rw-r--r-- | lib/utils/sys/htif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/sys/htif.c b/lib/utils/sys/htif.c index 330a9a6..7c69c7f 100644 --- a/lib/utils/sys/htif.c +++ b/lib/utils/sys/htif.c @@ -176,7 +176,7 @@ static struct sbi_system_reset_device htif_reset = { int htif_system_reset_init(void) { - sbi_system_reset_set_device(&htif_reset); + sbi_system_reset_add_device(&htif_reset); return 0; } |