imx-drm: imx-drm-core: fix DRM cleanup paths
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 16 Dec 2013 11:33:44 +0000 (11:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2013 01:09:52 +0000 (17:09 -0800)
commit8007875f0619f36d885ba357b587e673d6f20704
treeb3777c055cc031278bee1f36ca6463410075346e
parent82832046e285952f14e707647f9ef82466c883cc
imx-drm: imx-drm-core: fix DRM cleanup paths

We must call drm_vblank_cleanup() on the error cleanup and unload paths
after we've had a successful call to drm_vblank_init().  Ensure that
the calls are in the reverse order to the initialisation order.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/imx-drm/imx-drm-core.c