drm/tegra: dpaux: Clean-up on probe failure
authorJon Hunter <jonathanh@nvidia.com>
Wed, 29 Jun 2016 09:17:48 +0000 (10:17 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 30 Jun 2016 10:30:43 +0000 (12:30 +0200)
commitbcbd63dfc90a3ae515013b0f300e4f3ce62f7249
treeec029d6c9d722b5de29ad2e8008cfd0abcee9343
parent4b92e2948f8fb2bc2182a2e74703bf0cee777753
drm/tegra: dpaux: Clean-up on probe failure

If the probing of the DPAUX fails, then clocks are left enabled and the
DPAUX reset de-asserted. Add code to perform the necessary clean-up on
probe failure by disabling clocks and asserting the reset.

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