From: Daniel Vetter Subject: [PATCH 03/19] drm/imx: directly call drm_put_dev in ->remove Date: Sun, 3 Nov 2013 14:31:09 +0100 Message-ID: <1383485485-8210-4-git-send-email-daniel.vetter@ffwll.ch> References: <1383485485-8210-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f46.google.com (mail-ee0-f46.google.com [74.125.83.46]) by gabe.freedesktop.org (Postfix) with ESMTP id 58A47EE8C9 for ; Sun, 3 Nov 2013 05:31:06 -0800 (PST) Received: by mail-ee0-f46.google.com with SMTP id b57so208936eek.5 for ; Sun, 03 Nov 2013 05:31:05 -0800 (PST) In-Reply-To: <1383485485-8210-1-git-send-email-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org To: DRI Development Cc: Daniel Vetter , Greg Kroah-Hartman List-Id: dri-devel@lists.freedesktop.org Again no apparent user of the driver data field. Cc: Sascha Hauer Cc: Greg Kroah-Hartman Signed-off-by: Daniel Vetter --- drivers/staging/imx-drm/imx-drm-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/imx-drm/imx-drm-core.c b/drivers/staging/imx-drm/imx-drm-core.c index c1014eb2907d..8ffd4a900bb9 100644 --- a/drivers/staging/imx-drm/imx-drm-core.c +++ b/drivers/staging/imx-drm/imx-drm-core.c @@ -432,6 +432,8 @@ static int imx_drm_driver_load(struct drm_device *drm, unsigned long flags) if (!imx_drm_device_get()) ret = -EINVAL; + platform_set_drvdata(drm->platformdev, drm); + ret = 0; err_init: @@ -807,7 +809,7 @@ static int imx_drm_platform_probe(struct platform_device *pdev) static int imx_drm_platform_remove(struct platform_device *pdev) { - drm_platform_exit(&imx_drm_driver, pdev); + drm_put_dev(platform_get_drvdata(pdev)); return 0; } -- 1.8.4.rc3