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: 9158443 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 0BD9E60759 for ; Mon, 6 Jun 2016 14:43:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1A5C2015F for ; Mon, 6 Jun 2016 14:43:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6C0F26E5D; Mon, 6 Jun 2016 14:43:09 +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 DA88E2015F for ; Mon, 6 Jun 2016 14:43:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 21E016E5BA; Mon, 6 Jun 2016 14:43:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yw0-f194.google.com (mail-yw0-f194.google.com [209.85.161.194]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4542A6E5B9 for ; Mon, 6 Jun 2016 14:42:40 +0000 (UTC) Received: by mail-yw0-f194.google.com with SMTP id n16so19319439ywd.2 for ; Mon, 06 Jun 2016 07:42:40 -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=fL99fTz9YTSG3D1xkjgeiZrZhLpDeL1sW7Ya3yKsG2CjVvF72KAyQv/M8VuZoxIeLw KcBd4+FYzp+fCdNA7gMvfgDXAzur3KsCK2xcR1tfNOz7W552GUTKMXlg58p/dgzGpZfi yyR7UX8o/aj37Z7hjmSaQU99uzxyV1CQsOpuyYp/ffPWcPwNz+oJ5754zxsPthiPJBuv 9sXrWOtDK/pkrZMLayLqwyYSeWYMDAj6m/yKm+tShfbb8va4y3RKfY7otNRn/iERVZu6 2MJIFI9xS2jIoWH007v52j8ivrTQibZkZXNXoEEgfLoRnkxqhlRUsLbIMtMspxxarxqe HXfA== X-Gm-Message-State: ALyK8tI67rjHCltiBBjizI3MyfbXbGrx2ULTH9EQ0RY3qJf93WUar9+7Cf2b3wJ26/Vmmg== 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 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> Cc: "open list:DRM DRIVERS FOR RENESAS" , Gustavo Padovan , Laurent Pinchart , 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 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);