]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc/tegra: pmc: Embed reboot notifier in PMC context
authorThierry Reding <treding@nvidia.com>
Mon, 3 Feb 2025 13:38:24 +0000 (14:38 +0100)
committerThierry Reding <treding@nvidia.com>
Sun, 18 Jan 2026 07:48:29 +0000 (08:48 +0100)
commit48b7f802fb78f6f13c771c03fd6329c8a88e6991
tree94478b5685fd8bd54e71bd003bc60dd1f2f9540f
parent0732dffeb093064b7954a48362ec83a25262878b
soc/tegra: pmc: Embed reboot notifier in PMC context

Instead of relying on a global variable to track the PMC context, embed
the reboot notifier into the PMC context so that the latter can be
resolved using container_of().

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c