[PATCH 04/50] drm/tilcdc: call drm_put_dev directly from ->remove
Rob Clark
robdclark at gmail.com
Wed Dec 11 11:39:00 PST 2013
On Wed, Dec 11, 2013 at 5:34 AM, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
> tilcdc already stores the drm_device in the driver data pointer. So
> use that.
>
> Cc: Rob Clark <robdclark at gmail.com>
> Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
Reviewed-by: Rob Clark <robdclark at gmail.com>
> ---
> drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
> index 116da199b942..e6d77d02e444 100644
> --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c
> +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
> @@ -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;
> }
> --
> 1.8.4.3
>
More information about the dri-devel
mailing list