drm/tegra: dsi: Properly cleanup on probe failure
authorThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 13:58:27 +0000 (14:58 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 15:12:18 +0000 (16:12 +0100)
commitd2d0a9d21285ace23b7e99c89a52ee9b5ceef792
treeb617c1fcf428e89e84a985133ab29f4fccdcfcee
parentba3df9792207601762060a313d18efdd6ae83501
drm/tegra: dsi: Properly cleanup on probe failure

The driver wasn't even attempting to do any cleanup when probing failed.
Fix this by releasing any resources acquired up to the point of failure
and putting the device back into the original state (reset, clocks off).

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