aboutsummaryrefslogtreecommitdiff
path: root/lib/utils/sys
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/sys')
-rw-r--r--lib/utils/sys/htif.c2
-rw-r--r--lib/utils/sys/sifive_test.c2
2 files changed, 2 insertions, 2 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;
}
diff --git a/lib/utils/sys/sifive_test.c b/lib/utils/sys/sifive_test.c
index 4533954..a9ebb5c 100644
--- a/lib/utils/sys/sifive_test.c
+++ b/lib/utils/sys/sifive_test.c
@@ -59,7 +59,7 @@ static struct sbi_system_reset_device sifive_test_reset = {
int sifive_test_init(unsigned long base)
{
sifive_test_base = (void *)base;
- sbi_system_reset_set_device(&sifive_test_reset);
+ sbi_system_reset_add_device(&sifive_test_reset);
return 0;
}