diff options
author | Guido Martínez <guido@vanguardiasur.com.ar> | 2014-06-17 11:17:08 -0300 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-09-18 16:39:59 +0200 |
commit | a643641609ae76e8d1628ce72b40d826912f7b5a (patch) | |
tree | 8d440e19dd54ce4bd547466dd94daffc6d8d8076 /drivers | |
parent | 565c526606aad527140f036004c258feed9bae44 (diff) | |
download | lwn-a643641609ae76e8d1628ce72b40d826912f7b5a.tar.gz lwn-a643641609ae76e8d1628ce72b40d826912f7b5a.zip |
drm/tilcdc: fix release order on exit
commit eb565a2bbadc6a5030a6dbe58db1aa52453e7edf upstream.
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>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_drv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 247ab5d60df0..af1b17a0db66 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -629,10 +629,10 @@ static int __init tilcdc_drm_init(void) static void __exit tilcdc_drm_fini(void) { DBG("fini"); - tilcdc_tfp410_fini(); - tilcdc_slave_fini(); - tilcdc_panel_fini(); platform_driver_unregister(&tilcdc_platform_driver); + tilcdc_panel_fini(); + tilcdc_slave_fini(); + tilcdc_tfp410_fini(); } late_initcall(tilcdc_drm_init); |