mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
3a49012224
commit
eb565a2bba
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue