From: Daniel Vetter Subject: [PATCH 07/19] drm/host1x: Call drm_put_dev directly instead of drm_platform_exit Date: Sun, 3 Nov 2013 14:31:13 +0100 Message-ID: <1383485485-8210-8-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-f45.google.com (mail-ee0-f45.google.com [74.125.83.45]) by gabe.freedesktop.org (Postfix) with ESMTP id 06BA3EE88B for ; Sun, 3 Nov 2013 05:31:11 -0800 (PST) Received: by mail-ee0-f45.google.com with SMTP id e50so602987eek.4 for ; Sun, 03 Nov 2013 05:31:11 -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 List-Id: dri-devel@lists.freedesktop.org I'm a bit confused about how this all works wrt host1x clients, but this patch looks like the right thing to me. Cc: Thierry Reding Signed-off-by: Daniel Vetter --- drivers/gpu/host1x/drm/drm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/host1x/drm/drm.c b/drivers/gpu/host1x/drm/drm.c index df7d90a3a4fa..e2eabc4078d9 100644 --- a/drivers/gpu/host1x/drm/drm.c +++ b/drivers/gpu/host1x/drm/drm.c @@ -161,7 +161,6 @@ int host1x_drm_init(struct host1x_drm *host1x, struct drm_device *drm) int host1x_drm_exit(struct host1x_drm *host1x) { - struct platform_device *pdev = to_platform_device(host1x->dev); struct host1x_client *client; if (!host1x->drm) @@ -184,7 +183,7 @@ int host1x_drm_exit(struct host1x_drm *host1x) mutex_unlock(&host1x->clients_lock); - drm_platform_exit(&tegra_drm_driver, pdev); + drm_put_dev(host1x->drm); host1x->drm = NULL; return 0; -- 1.8.4.rc3