lib: utils/reset: separate driver init func
authorNikita Shubin <n.shubin@yadro.com>
Wed, 10 Nov 2021 09:42:26 +0000 (12:42 +0300)
committerAnup Patel <anup@brainfault.org>
Fri, 12 Nov 2021 04:46:23 +0000 (10:16 +0530)
commit1d462e039782e49d2a96a776e50b7478d87b228d
treef63f3209c7e46941f76d1897bf71614b31638099
parent94eba23376b5324f012e8e035a341d6d2d625b27
lib: utils/reset: separate driver init func

Move driver init code to separate function, so it can be reused
elsewhere.

Tested-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Tested-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Signed-off-by: Nikita Shubin <n.shubin@yadro.com>
include/sbi_utils/reset/fdt_reset.h
lib/utils/reset/fdt_reset.c