diff options
Diffstat (limited to 'lib/utils/reset/fdt_reset.c')
-rw-r--r-- | lib/utils/reset/fdt_reset.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils/reset/fdt_reset.c b/lib/utils/reset/fdt_reset.c index 4334586..327fb99 100644 --- a/lib/utils/reset/fdt_reset.c +++ b/lib/utils/reset/fdt_reset.c @@ -26,6 +26,9 @@ int fdt_reset_driver_init(void *fdt, struct fdt_reset *drv) if (noff < 0) return SBI_ENODEV; + if (!fdt_node_is_enabled(fdt, noff)) + return SBI_ENODEV; + if (drv->init) { rc = drv->init(fdt, noff, match); if (rc && rc != SBI_ENODEV) { |