From patchwork Thu Dec 18 13:58:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 5513631 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3BC879F434 for ; Thu, 18 Dec 2014 13:59:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ED85520A25 for ; Thu, 18 Dec 2014 13:59:33 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 1369020A1B for ; Thu, 18 Dec 2014 13:59:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 133906E9ED; Thu, 18 Dec 2014 05:59:32 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qa0-f46.google.com (mail-qa0-f46.google.com [209.85.216.46]) by gabe.freedesktop.org (Postfix) with ESMTP id 46E1E6E9EC for ; Thu, 18 Dec 2014 05:59:30 -0800 (PST) Received: by mail-qa0-f46.google.com with SMTP id w8so764518qac.33 for ; Thu, 18 Dec 2014 05:59:30 -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=H+gQ/oh23mdhMzvZVVWZMqMnyjTTRRBtQ4PGsDevWtiiojFg1EFd011l2YU/j0V24C wWd4Rj+AkCjefq8LWGMfZQA531OXgpRmijELQ0JOJacp2GqErI/0+OqCgg+AF8n1TPW1 m45EWtzJrtDXPGo59xYBf0ZVJQ61/Oe7T7uI3/CL7YcQPxfVxUTLVz3emy+JSeuOA2A0 TTKL/kmwX1/cDoyI68GyVZj7qQbelQrsP/2QAF2Hcj1966OPxg9Ao32Q9FmPCiTEtgOK Fbu/Zn/Di4KWt/8/F/HndlCZH4RGWZ4EqqXSLZPMp9P+0w7uxZSKX9WnueNZE7WTbq6T cxjA== X-Received: by 10.140.21.167 with SMTP id 36mr3443803qgl.25.1418911169682; Thu, 18 Dec 2014 05:59:29 -0800 (PST) Received: from localhost.localdomain ([191.8.90.215]) by mx.google.com with ESMTPSA id c63sm6802505qgf.47.2014.12.18.05.59.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Dec 2014 05:59:28 -0800 (PST) From: Gustavo Padovan To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 07/29] drm/exynos/vidi: remove useless ops->commit() Date: Thu, 18 Dec 2014 11:58:33 -0200 Message-Id: <1418911135-5207-8-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1418911135-5207-1-git-send-email-gustavo@padovan.org> References: <1418911135-5207-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,