diff options
| author | Osvaldo Banuelos <osvaldob@codeaurora.org> | 2016-06-22 14:51:47 -0700 |
|---|---|---|
| committer | Kyle Yan <kyan@codeaurora.org> | 2016-06-24 15:04:34 -0700 |
| commit | 506ddf3b445f5392f01d3ea2aeff782ae4ef0b37 (patch) | |
| tree | 4d6b44ff0bdafe91c22d931e119f478ef8ac1376 | |
| parent | 23a1f5a2a64c391c376a74c8b77c82a60317fe02 (diff) | |
regulator: cpr3-util: init panic notifier for CPRh controllers
Call cpr3_panic_notifier_init() when cpr3_parse_common_ctrl_data()
is called for CPRh controllers. This allows dumping registers during
a kernel panic when CPRh controller devices specify panic register
configuration.
CRs-Fixed: 1033060
Change-Id: I437fe28725d5c1ed06fe8b9735b04bbd84e92db1
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
| -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; } |
