From patchwork Sun Nov 3 13:31:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 3133401 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4EAA2BEEB2 for ; Sun, 3 Nov 2013 13:31:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7269C20233 for ; Sun, 3 Nov 2013 13:31:38 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id EFA34200EC for ; Sun, 3 Nov 2013 13:31:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DE330EE927; Sun, 3 Nov 2013 05:31:23 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LozUMIlmzRD8CyM4WXygaYGTVVfgv0ofbgO0aXfWo9k=; b=Lsm7QkikrPJidSn/6bhFAERA/L0cxcC0rkOY547wtHVHMEsv2TUZus35Nd9Aus5HmQ wgJRrq4MwBaMC+T7SKjwWIJP5TuT8rYKlTWDf+nfAML9ATGBZuiyfDK5/dTc9EWci3rT ZsTzvDuq8Mjjh6WD/yUXNidpDrfUYFDqmRKy0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LozUMIlmzRD8CyM4WXygaYGTVVfgv0ofbgO0aXfWo9k=; b=VmQh/J6+eCL84IMef1yHh3wBLnWPTlD73yZl4CknX5g0LwLWjgoJQmPCQiyDXWOx1n bxgHQUfcLjMN8++JkQEX7ZUG6Sj5USuGInaJpgiFzWu5Px+s61QJecew/tSscTZF9761 vltHDcvw89aiabjVsXvfVj7hm+A1hoRW4aTeZUV6iNLQMTJ1aTkjbaEYdDpoSAqmSRQg rDtg2Uaw/jzEfwCmzU/apKtVe1w0P99vfJkh/OQ6ww8nvfA9ca1FfJhfhve5XPVndS4r rOpd2NY/mUJ+RsJrlgxNiKBbs75N2DJgODxKvT+trnYLAYC2y6X5mJpWR2pwzmk0SFNv 0Hew== X-Gm-Message-State: ALoCoQngQw3Eu+9j21hNiq82uWRw9/GeJ6h/CKxqHUVqQ8W4UQspZtG2BS9XxfOiIk+ncfOCFIsY X-Received: by 10.14.174.131 with SMTP id x3mr13114980eel.25.1383485471138; Sun, 03 Nov 2013 05:31:11 -0800 (PST) Received: from phenom.ffwll.local (178-83-130-250.dynamic.hispeed.ch. [178.83.130.250]) by mx.google.com with ESMTPSA id b42sm33440171eem.9.2013.11.03.05.31.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Nov 2013 05:31:10 -0800 (PST) From: Daniel Vetter To: DRI Development 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> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1383485485-8210-1-git-send-email-daniel.vetter@ffwll.ch> References: <1383485485-8210-1-git-send-email-daniel.vetter@ffwll.ch> Cc: Daniel Vetter X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;