diff options
author | Guido MartÃnez <guido@vanguardiasur.com.ar> | 2014-06-17 11:17:08 -0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-07-08 11:25:21 +1000 |
commit | eb565a2bbadc6a5030a6dbe58db1aa52453e7edf (patch) | |
tree | b17303b81554f609de7426d7e89e8708321dd094 /drivers/gpu/drm/tilcdc/tilcdc_drv.c | |
parent | 3a49012224ca9016658a831a327ff6a7fe5bb4f9 (diff) | |
download | linux-eb565a2bbadc6a5030a6dbe58db1aa52453e7edf.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpu/drm/tilcdc/tilcdc_drv.c')
-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 490aee79e106..006a30e90390 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); |