Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 506ddf3b authored by Osvaldo Banuelos's avatar Osvaldo Banuelos Committed by Kyle Yan
Browse files

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: default avatarOsvaldo Banuelos <osvaldob@codeaurora.org>
parent 23a1f5a2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;
}