diff options
author | Stefan Agner <stefan@agner.ch> | 2016-10-19 17:32:20 -0700 |
---|---|---|
committer | Stefan Agner <stefan@agner.ch> | 2016-11-28 17:18:33 -0800 |
commit | 39a5019a2c13580f21efc756babccb4c03b6a8ce (patch) | |
tree | a421730ffe070ea0ae79a6bd218cae00323e6e6a /drivers/gpu/drm/fsl-dcu | |
parent | 7625e05286cf3f37c8a5e633379a4d014ddbe555 (diff) | |
download | op-kernel-dev-39a5019a2c13580f21efc756babccb4c03b6a8ce.zip op-kernel-dev-39a5019a2c13580f21efc756babccb4c03b6a8ce.tar.gz |
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>
Diffstat (limited to 'drivers/gpu/drm/fsl-dcu')
-rw-r--r-- | drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c index 0b0d1cb..30c46a8 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c @@ -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); + drm_put_dev(fsl_dev->drm); clk_disable_unprepare(fsl_dev->clk); clk_unregister(fsl_dev->pix_clk); - drm_put_dev(fsl_dev->drm); return 0; } |