]> git.karo-electronics.de Git - karo-tx-linux.git/commit
soc: tegra: pmc: Remove debugfs entry on probe failure
authorJon Hunter <jonathanh@nvidia.com>
Fri, 4 Dec 2015 14:57:05 +0000 (14:57 +0000)
committerThierry Reding <treding@nvidia.com>
Mon, 25 Jan 2016 13:22:58 +0000 (14:22 +0100)
commit00a070e051d51a5aac80b416e03592b4b2a91071
tree0cd762ce939313ed2e8b92a5cc73bb6cc787ebeb
parentce10fefa2d2bdfde9df39a8ec8301204287176a1
soc: tegra: pmc: Remove debugfs entry on probe failure

The debugfs entry for the PMC device will not be removed if the probe of
the device fails to register the restart handler. This leaves behind the
dangling debugfs entry with no driver backing it. Remove the entry to
avoid this.

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