diff options
| -rw-r--r-- | drivers/regulator/cpr3-util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/regulator/cpr3-util.c b/drivers/regulator/cpr3-util.c index 57631b14b5f6..34b51ec8cab8 100644 --- a/drivers/regulator/cpr3-util.c +++ b/drivers/regulator/cpr3-util.c @@ -1174,6 +1174,10 @@ int cpr3_parse_common_ctrl_data(struct cpr3_controller *ctrl) } } + rc = cpr3_panic_notifier_init(ctrl); + if (rc) + return rc; + /* * Regulator device handles are not necessary for CPRh controllers * since communication with the regulators is completely managed @@ -1215,8 +1219,6 @@ int cpr3_parse_common_ctrl_data(struct cpr3_controller *ctrl) } } - rc = cpr3_panic_notifier_init(ctrl); - return rc; } |
