From: Tomi Valkeinen Date: Wed, 2 Apr 2014 10:47:43 +0000 (+0300) Subject: drm/omap: fix uninit order in pdev_remove() X-Git-Tag: omap-for-v3.16/pm-signed~75^2~8^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=707cf58a0a847f60f849b44bfb9b85dcc17c599d;p=pandora-kernel.git 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 Reviewed-by: Rob Clark --- Reading git-diff-tree failed