From patchwork Mon Jun 6 14:41:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9158439 X-Patchwork-Delegate: geert@linux-m68k.org 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 6565260759 for ; Mon, 6 Jun 2016 14:43:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 575392015F for ; Mon, 6 Jun 2016 14:43:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C42F26E5D; Mon, 6 Jun 2016 14:43:07 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD7642015F for ; Mon, 6 Jun 2016 14:43:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752779AbcFFOmq (ORCPT ); Mon, 6 Jun 2016 10:42:46 -0400 Received: from mail-yw0-f196.google.com ([209.85.161.196]:35621 "EHLO mail-yw0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753339AbcFFOmj (ORCPT ); Mon, 6 Jun 2016 10:42:39 -0400 Received: by mail-yw0-f196.google.com with SMTP id n16so19319440ywd.2; Mon, 06 Jun 2016 07:42:39 -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=HuHnjgMKYYlPa9hwETKFYjYUDr5oO/dVDpSDWpreqIM=; b=NCM6SyQB5AyneP9uh3fAewhJ135IhDvh7LtBE6s3oejccCDxW3ZLgljbtTpqjPiw3W jzV7+4zcCoBmimsdVk7jzMeF6fLzxWfogDsjq1Qxom1UjEqepWevhUtY1euJh4D8FxaM bn4yknD9M9r06jiV6hZpI0MhrxwdAEHI3oUqLIufewF8IiAmL64iHiBTrUrLNfNgjSIR gojP7X+4LW5KiF+/ooh4OMSf7DK5wOR8uuME6grOM3GFaEoCgobkYVGbNx77F0JOKoSW ipGNaUJBNhUHuSUa7sf6JWcM601z1VcNhF1BQMjFEj/9DPPSD7ZOaYt1RAZ50w2/Hths AiLg== X-Gm-Message-State: ALyK8tK4oBrvECGKLCg7I2dbbFk45/W6ubWhU4EYux6sHJjyz4ihj9WIGw2IHJhXM6IiWA== X-Received: by 10.13.233.199 with SMTP id s190mr10256290ywe.99.1465224158673; Mon, 06 Jun 2016 07:42:38 -0700 (PDT) Received: from jade.localdomain ([201.82.24.203]) by smtp.gmail.com with ESMTPSA id f124sm11736407ywb.13.2016.06.06.07.42.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jun 2016 07:42:38 -0700 (PDT) From: Gustavo Padovan To: dri-devel@lists.freedesktop.org Cc: Gustavo Padovan , Laurent Pinchart , David Airlie , linux-renesas-soc@vger.kernel.org (open list:DRM DRIVERS FOR RENESAS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 14/14] drm/shmobile: use drm_crtc_vblank_{get,put}() Date: Mon, 6 Jun 2016 11:41:45 -0300 Message-Id: <1465224105-21485-14-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1465224105-21485-1-git-send-email-gustavo@padovan.org> References: <1465224105-21485-1-git-send-email-gustavo@padovan.org> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan Replace the legacy drm_vblank_{get,put}() with the new helper functions. Signed-off-by: Gustavo Padovan Acked-by: Laurent Pinchart --- drivers/gpu/drm/shmobile/shmob_drm_crtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/shmobile/shmob_drm_crtc.c b/drivers/gpu/drm/shmobile/shmob_drm_crtc.c index 1e154fc..6547b1d 100644 --- a/drivers/gpu/drm/shmobile/shmob_drm_crtc.c +++ b/drivers/gpu/drm/shmobile/shmob_drm_crtc.c @@ -441,7 +441,7 @@ void shmob_drm_crtc_finish_page_flip(struct shmob_drm_crtc *scrtc) scrtc->event = NULL; if (event) { drm_crtc_send_vblank_event(&scrtc->crtc, event); - drm_vblank_put(dev, 0); + drm_crtc_vblank_put(&scrtc->crtc); } spin_unlock_irqrestore(&dev->event_lock, flags); } @@ -467,7 +467,7 @@ static int shmob_drm_crtc_page_flip(struct drm_crtc *crtc, if (event) { event->pipe = 0; - drm_vblank_get(dev, 0); + drm_crtc_vblank_get(&scrtc->crtc); spin_lock_irqsave(&dev->event_lock, flags); scrtc->event = event; spin_unlock_irqrestore(&dev->event_lock, flags);