drm/omap: fix uninit order in pdev_remove()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 2 Apr 2014 10:47:43 +0000 (13:47 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 14 Apr 2014 09:34:14 +0000 (12:34 +0300)
commit707cf58a0a847f60f849b44bfb9b85dcc17c599d
tree6ce6102524f81cc69614bafaf42298b48783d297
parent2ec8e3787ae6957f738bb133e755213b9d7c066e
drm/omap: fix uninit order in pdev_remove()

When unloading omapdrm driver, the omapdrm platform device is
uninitialized last, after the displays have been disconnected omap_crtc
callbacks have been removed. As the omapdrm pdev uninitialization needs
the features uninitialized in earlier steps, a crash is guaranteed.

This patch fixes the uninitialize order so that the omapdrm pdev is
removed first.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/omapdrm/omap_drv.c