Skip to content

Commit

Permalink
drm/tilcdc: call drm_put_dev directly from ->remove
Browse files Browse the repository at this point in the history
tilcdc already stores the drm_device in the driver data pointer. So
use that.

Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Daniel Vetter authored and Dave Airlie committed Dec 18, 2013
1 parent 9076dcc commit c84b435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/tilcdc/tilcdc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ static int tilcdc_pdev_probe(struct platform_device *pdev)

static int tilcdc_pdev_remove(struct platform_device *pdev)
{
drm_platform_exit(&tilcdc_driver, pdev);
drm_put_dev(platform_get_drvdata(pdev));

return 0;
}
Expand Down

0 comments on commit c84b435

Please sign in to comment.