Skip to content

Commit

Permalink
drm/armada: directly call drm_put_dev in ->remove
Browse files Browse the repository at this point in the history
Again no apparent user of the driver data field.

Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Daniel Vetter authored and Dave Airlie committed Dec 18, 2013
1 parent 405bea7 commit 50fb3c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/armada/armada_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ static int armada_drm_load(struct drm_device *dev, unsigned long flags)
return -ENOMEM;
}

platform_set_drvdata(dev->platformdev, dev);
dev->dev_private = priv;

/* Get the implementation specific driver data. */
Expand Down Expand Up @@ -376,7 +377,7 @@ static int armada_drm_probe(struct platform_device *pdev)

static int armada_drm_remove(struct platform_device *pdev)
{
drm_platform_exit(&armada_drm_driver, pdev);
drm_put_dev(platform_get_drvdata(pdev));
return 0;
}

Expand Down

0 comments on commit 50fb3c3

Please sign in to comment.