[PATCH 1/3] drm/tegra: Fix error handling cleanup

2014-11-06 Thread Thierry Reding
From: Thierry Reding The DRM driver's ->load() implementation didn't do a good job (no job at all really) cleaning up on failure. Fix that by undoing any prior setup when an error occurs. This requires a bit of rework to make it possible to clean up fbdev midway. This was tested by injecting err

[PATCH 1/3] drm/tegra: Fix error handling cleanup

2014-11-06 Thread Sean Paul
On Thu, Nov 06, 2014 at 04:57:14PM +0100, Thierry Reding wrote: > From: Thierry Reding > > The DRM driver's ->load() implementation didn't do a good job (no job at > all really) cleaning up on failure. Fix that by undoing any prior setup > when an error occurs. This requires a bit of rework to ma