From patchwork Wed Nov 26 18:13:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 5387371 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 8A395C11AC for ; Wed, 26 Nov 2014 18:13:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C31DB20160 for ; Wed, 26 Nov 2014 18:13:19 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 64C86201F4 for ; Wed, 26 Nov 2014 18:13:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 95FA86E26D; Wed, 26 Nov 2014 10:13:17 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qc0-f177.google.com (mail-qc0-f177.google.com [209.85.216.177]) by gabe.freedesktop.org (Postfix) with ESMTP id EFEA26E26D for ; Wed, 26 Nov 2014 10:13:15 -0800 (PST) Received: by mail-qc0-f177.google.com with SMTP id x3so2469056qcv.36 for ; Wed, 26 Nov 2014 10:13:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=k0gNCZTjQpZIWyXu3ksfs0m5xTFYi3bunO6lf6toZfg=; b=eykOd65wyTaSXI1xYFY+0Qd6XiC/GgDpZqw/HlCpoHZ9VfFxQXN6qJ/ztfo5TxUTZH 4il2UeunfuY1nmBu1ecfb4FtPZZfA88j6GUPgrHpP8AVZaYpb8hADv6rBGMsffx5fQ1P lcWz1HIzeOUPymDt//0T799wh8wbj6zMuxJ4tzd+4tPwvEGHnf/0cBxGBgqL8JNJiy5q wJGOXQs+1AsRLh8YZ0IoZF/tKurq1Zga5+9KORZPVgbyMjAP5cxqFn/VgzxXBWFUYor1 zcLrP5fpgGZVorYVMLpjNpVpXc3ppmIg/Bn0Qw6bkqHBhW6wqU4l03JzychAb2r2QwkW YquA== X-Received: by 10.224.128.68 with SMTP id j4mr47162291qas.91.1417025595471; Wed, 26 Nov 2014 10:13:15 -0800 (PST) Received: from localhost.localdomain ([191.8.93.69]) by mx.google.com with ESMTPSA id e2sm4517825qaw.10.2014.11.26.10.13.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Nov 2014 10:13:14 -0800 (PST) From: Gustavo Padovan To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 2/2] drm/exynos/vidi: remove useless ops->commit() Date: Wed, 26 Nov 2014 16:13:03 -0200 Message-Id: <1417025583-4054-2-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1417025583-4054-1-git-send-email-gustavo@padovan.org> References: <1417025583-4054-1-git-send-email-gustavo@padovan.org> Cc: Gustavo Padovan , dri-devel@lists.freedesktop.org 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, 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 From: Gustavo Padovan vidi_commit does nothing, remove it and its callers. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_drm_vidi.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c index ff194be..7f9ce73 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c @@ -115,17 +115,6 @@ static void vidi_apply(struct exynos_drm_manager *mgr) if (win_data->enabled && (mgr_ops && mgr_ops->win_commit)) mgr_ops->win_commit(mgr, i); } - - if (mgr_ops && mgr_ops->commit) - mgr_ops->commit(mgr); -} - -static void vidi_commit(struct exynos_drm_manager *mgr) -{ - struct vidi_context *ctx = manager_to_vidi(mgr); - - if (ctx->suspended) - return; } static int vidi_enable_vblank(struct exynos_drm_manager *mgr) @@ -320,7 +309,6 @@ static int vidi_mgr_initialize(struct exynos_drm_manager *mgr, static struct exynos_drm_manager_ops vidi_manager_ops = { .dpms = vidi_dpms, - .commit = vidi_commit, .enable_vblank = vidi_enable_vblank, .disable_vblank = vidi_disable_vblank, .win_mode_set = vidi_win_mode_set,