drm/fsl-dcu: unload driver before disabling clocks
Use drm_put_dev to unload the driver before disabling clocks. Otherwise the driver might read a register during unload which leads to an external abort. Signed-off-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
parent
7625e05286
commit
39a5019a2c
@ -428,9 +428,9 @@ static int fsl_dcu_drm_remove(struct platform_device *pdev)
|
|||||||
{
|
{
|
||||||
struct fsl_dcu_drm_device *fsl_dev = platform_get_drvdata(pdev);
|
struct fsl_dcu_drm_device *fsl_dev = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
|
drm_put_dev(fsl_dev->drm);
|
||||||
clk_disable_unprepare(fsl_dev->clk);
|
clk_disable_unprepare(fsl_dev->clk);
|
||||||
clk_unregister(fsl_dev->pix_clk);
|
clk_unregister(fsl_dev->pix_clk);
|
||||||
drm_put_dev(fsl_dev->drm);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user