From patchwork Tue Jun 7 14:07:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9161441 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 8641D60573 for ; Tue, 7 Jun 2016 14:09:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76D71264F4 for ; Tue, 7 Jun 2016 14:09:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BF8427248; Tue, 7 Jun 2016 14:09:04 +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 1B4FE264F4 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 24BF56E766; 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-f196.google.com (mail-yw0-f196.google.com [209.85.161.196]) by gabe.freedesktop.org (Postfix) with ESMTPS id C8A156E766 for ; Tue, 7 Jun 2016 14:08:38 +0000 (UTC) Received: by mail-yw0-f196.google.com with SMTP id y6so23027187ywe.0 for ; Tue, 07 Jun 2016 07:08:38 -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=iM6Pnzprcf6BAAEcwhVNyar5SCiZvRhSwLbs+BOFmLM=; b=OBsxM20AlrcK6d1hBU50zkf2CLHYdVSoounbz8oCCTzi2ur2zZ2Xe6iu4FL8erGOV6 uosfOKJmRpcvqIXhcBcstWGpAncOsKLLRl1L/fDQVGd1HClJud8Tg8I8YPT90NfbeAIb efevylqU8tJMIiYqnuPwxDsB20aVdkh482IOGa0QjszuHRQleZDU33qXQBQs1TRpnWmN xHy+AYB4RF+3jj4R4XF4108PCPf54BPmByCSSuLozjcjxD0n7w23GeuWGAaXjs9rg2HM d+1TaFVUku8SGNeD4pD1Py+ZK7uapJjlGiQu47Z95XAeQLzKh7Hd93a029Q2sLVrfPZl 6ixg== X-Gm-Message-State: ALyK8tLwK0+lXT5GHRVqkNZdRSJhKXDxBujAwXgEJZNxnzC6/4pMy+deJXnNWccyb4p/5g== X-Received: by 10.129.109.12 with SMTP id i12mr14072415ywc.121.1465308517106; Tue, 07 Jun 2016 07:08:37 -0700 (PDT) Received: from jade.localdomain ([201.82.24.203]) by smtp.gmail.com with ESMTPSA id m204sm14495205ywb.54.2016.06.07.07.08.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jun 2016 07:08:36 -0700 (PDT) From: Gustavo Padovan To: dri-devel@lists.freedesktop.org Subject: [PATCH 07/10] drm/gma500: use drm_crtc_vblank_{on,off}() Date: Tue, 7 Jun 2016 11:07:59 -0300 Message-Id: <1465308482-15104-7-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: Gustavo Padovan , 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_{on,off}() with the new helper functions. Signed-off-by: Gustavo Padovan Acked-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/gma_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/gma_display.c b/drivers/gpu/drm/gma500/gma_display.c index c95406e..e3d9e35 100644 --- a/drivers/gpu/drm/gma500/gma_display.c +++ b/drivers/gpu/drm/gma500/gma_display.c @@ -281,7 +281,7 @@ void gma_crtc_dpms(struct drm_crtc *crtc, int mode) REG_WRITE(VGACNTRL, VGA_DISP_DISABLE); /* Turn off vblank interrupts */ - drm_vblank_off(dev, pipe); + drm_crtc_vblank_off(crtc); /* Wait for vblank for the disable to take effect */ gma_wait_for_vblank(dev);