]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
soc/tegra: pmc: Remove genpd when adding provider fails
authorJon Hunter <jonathanh@nvidia.com>
Sat, 22 Oct 2016 19:23:56 +0000 (20:23 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 15 Nov 2016 14:51:55 +0000 (15:51 +0100)
commit0b137340d04b9dfa911cc882bc26ed611671f5f5
tree00b9f59ee314dcbdbbd23238e25cc63b5f46884a
parentcd5ceda27d4b45b797ede85c844fc08da5aa70e3
soc/tegra: pmc: Remove genpd when adding provider fails

Commit 3fe577107ccf ("PM / Domains: Add support for removing PM
domains") add support for removing PM domains. Update the Tegra PMC
driver to remove PM domains if we fail to add a provider for the PM
domain.

Please note that the code under 'power_on_cleanup' label does not
really belong in the clean-up error path for tegra_powergate_add().
To keep the error path simple, remove this label and move the
associated code to where it needs to be invoked.

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