]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca938f54bb10786cc691a677ace1ebe715105594
tree6ce6102524f81cc69614bafaf42298b48783d297
parent0fed15cecd6233672aa5302974773031e3d38bdb
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