From: Daniel Vetter Date: Wed, 11 Dec 2013 10:34:26 +0000 (+0100) Subject: drm/omap: call drm_put_dev directly in ->remove X-Git-Tag: v4.0~2486^2~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd3c02531461924853db65f2664db361b53a70d3;p=platform%2Fkernel%2Flinux-amlogic.git drm/omap: call drm_put_dev directly in ->remove Again omap already sets the driver data pointer to the drm_device. Also drop the driver unregister call, that should be (and already is) done in the module unload hook. Cc: Rob Clark Signed-off-by: Daniel Vetter Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c index e7fa3cd..13f294a 100644 --- a/drivers/gpu/drm/omapdrm/omap_drv.c +++ b/drivers/gpu/drm/omapdrm/omap_drv.c @@ -665,9 +665,9 @@ static int pdev_probe(struct platform_device *device) static int pdev_remove(struct platform_device *device) { DBG(""); - drm_platform_exit(&omap_drm_driver, device); - platform_driver_unregister(&omap_dmm_driver); + drm_put_dev(platform_get_drvdata(device)); + return 0; }