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>
Tue, 5 Apr 2016 13:22:40 +0000 (15:22 +0200)
commit3195ac6d9cbeef23631913d67f8c1e76b891da4d
tree32adbe2e5c6dbd7f54b95b675c8a6bf0a03e43a7
parent1e52efdfc6a29f9bad767b92b89ae6ae772063cc
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