diff options
author | Guido MartÃnez <guido@vanguardiasur.com.ar> | 2014-06-17 11:17:08 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-05 14:54:06 -0700 |
commit | aaee1af7b74ecbb1d16b3303aa63ef62a37d20c1 (patch) | |
tree | 0ecefdec88179e0bec5b48d9fc6c017d160674b8 | |
parent | ed64381eb3e1fe2f04af1ca06e942f3602abf123 (diff) | |
download | linux-3.10-aaee1af7b74ecbb1d16b3303aa63ef62a37d20c1.tar.gz linux-3.10-aaee1af7b74ecbb1d16b3303aa63ef62a37d20c1.tar.bz2 linux-3.10-aaee1af7b74ecbb1d16b3303aa63ef62a37d20c1.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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 668e34c4cc5..f060b7487c3 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -597,10 +597,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); |