drm/tilcdc: fix release order on exit
authorGuido Martínez <guido@vanguardiasur.com.ar>
Tue, 17 Jun 2014 14:17:08 +0000 (11:17 -0300)
committerDave Airlie <airlied@redhat.com>
Tue, 8 Jul 2014 01:25:21 +0000 (11:25 +1000)
commiteb565a2bbadc6a5030a6dbe58db1aa52453e7edf
treeb17303b81554f609de7426d7e89e8708321dd094
parent3a49012224ca9016658a831a327ff6a7fe5bb4f9
drm/tilcdc: fix release order on exit

Unregister resources in the correct order on tilcdc_drm_fini, which is
the reverse order they were registered during tilcdc_drm_init.

This also means unregistering the driver before releasing its resources.

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Tested-by: Darren Etheridge <detheridge@ti.com>
Cc: <stable@vger.kernel.org> #v3.9+
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/tilcdc/tilcdc_drv.c