From patchwork Tue Jun 7 14:08:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9161443 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4494C60573 for ; Tue, 7 Jun 2016 14:09:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 350D4264F4 for ; Tue, 7 Jun 2016 14:09:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 29CEF26E1A; Tue, 7 Jun 2016 14:09:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F16EC2824F for ; Tue, 7 Jun 2016 14:08:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 227FE6E046; Tue, 7 Jun 2016 14:08:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yw0-f193.google.com (mail-yw0-f193.google.com [209.85.161.193]) by gabe.freedesktop.org (Postfix) with ESMTPS id 548766E766 for ; Tue, 7 Jun 2016 14:08:45 +0000 (UTC) Received: by mail-yw0-f193.google.com with SMTP id y6so23027694ywe.0 for ; Tue, 07 Jun 2016 07:08:45 -0700 (PDT) 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=TwY8HuAzHPDxFXOxNufa9vw+UzKnjguAmvJPMse0omg=; b=B/+7NpbH0OC4NA1ML7aJgdnZ0V6t2/Q6eMRqWIWjiJZqeRmPc9RVykzAGpXk8c204W HRvaloC5lRXRATUQuoog2GAS9s4sQNz6X9hbxszCKdFNCwwIqjUrNJcp9GgwcA3+DAb7 a6e/d2lSKzQbVjkPQsuOy+mD8gFMBzmAvejcpKhg89VQTvyI6EojY7Ku13EM/ey6KDvU qQy07Zpjg5ajbmPLffuzAb7kHOZJ1Xek7LMbRR6w52jDcupTxaCEcdd/Rk53k5Wfy/ZR wVVU+MvfvCUPQXf6qaclaRWBVHD5wbXk/beULTXPO31Z1FVE+OjAJah4UFyGdzOd9jx/ 539A== X-Gm-Message-State: ALyK8tLmZKItSsxmnN5DgFXaAbp/Pl2wyFwRBsASPOu68bdd87hNgWDDZeuH5aDRIHtt0w== X-Received: by 10.129.21.213 with SMTP id 204mr15386923ywv.70.1465308524007; Tue, 07 Jun 2016 07:08:44 -0700 (PDT) Received: from jade.localdomain ([201.82.24.203]) by smtp.gmail.com with ESMTPSA id m204sm14495205ywb.54.2016.06.07.07.08.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jun 2016 07:08:43 -0700 (PDT) From: Gustavo Padovan To: dri-devel@lists.freedesktop.org Subject: [PATCH 09/10] drm/amdgpu: use crtc directly in drm_crtc_vblank_put() Date: Tue, 7 Jun 2016 11:08:01 -0300 Message-Id: <1465308482-15104-9-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1465308482-15104-1-git-send-email-gustavo@padovan.org> References: <1465308482-15104-1-git-send-email-gustavo@padovan.org> Cc: Alex Deucher , Gustavo Padovan , =?UTF-8?q?Christian=20K=C3=B6nig?= , open list X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan We don't need to use &amdgpu_crtc->base there as crtc is available in the function. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c index 0b5f3ac..a6eecf6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c @@ -268,7 +268,7 @@ int amdgpu_crtc_page_flip(struct drm_crtc *crtc, return 0; vblank_cleanup: - drm_crtc_vblank_put(&amdgpu_crtc->base); + drm_crtc_vblank_put(crtc); pflip_cleanup: if (unlikely(amdgpu_bo_reserve(new_rbo, false) != 0)) {