From patchwork Wed Oct 16 19:26:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 3057501 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 608039F243 for ; Wed, 16 Oct 2013 20:56:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 89A69202F0 for ; Wed, 16 Oct 2013 20:56:27 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9CC20202AE for ; Wed, 16 Oct 2013 20:56:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8DD92E76CC for ; Wed, 16 Oct 2013 13:56:26 -0700 (PDT) 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 8DCA6E783B for ; Wed, 16 Oct 2013 12:27:36 -0700 (PDT) Received: by mail-qa0-f46.google.com with SMTP id j15so4811298qaq.5 for ; Wed, 16 Oct 2013 12:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BCgbUrpl7TFp0KhzZulSVMPeSnc/AKKZIHYZ4kwphhY=; b=UpROuHy9XFpAglZ4JAsUVdK/j/X2LfmiYO4Fy16t7hvRkaiuaQvSaa765twDzQW7ci +cFQhCd9uYVfgJj2VS/aAgn/pbQmW8OoLi6NH1syAH77GTOl1I7sv8PQ86V1N+CcSAJN wg7h7FKGUFNdj9cjtGrr1UdVXtOvMak6Brees= 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=BCgbUrpl7TFp0KhzZulSVMPeSnc/AKKZIHYZ4kwphhY=; b=fGqcVJd8h4fN1ghM16pCeqIytTdnkrUPMD/w4AqmE88YxrMWqB0KaicN4Zv9QOmAm8 CfL4yD/QMygX27Q5NSMaLbPoaHzjSoXLRUgi8gziYo+2Xlsbi2PtGNdbnYwJk6eufgkr vgK0t3A5iHgdPJIqdnjc5h8kF6gcrcgNnGJpDvOHQ5aixziAHjU6Cc3aDoNZMZfDOUPW 2X0jlDCF8cFhoPEIvZE32wckpS1gS8Wn01vMmPZHUWguoap/2R9sXwVoM0TEMnmmfYWV IWBSrhk42kS5ZsZdPQmOiwSorkeJaw3kanMqGHN4uftILsRzwV1T9f7QVAEUzxjGvdR5 HBgA== X-Gm-Message-State: ALoCoQkVYfb9bTv8AWm16vqWyKl1MsUqhudHEVlFRpj+hjsQik/rIOoJswvm6ikap1X3qoIxo2wa X-Received: by 10.229.79.137 with SMTP id p9mr6296339qck.12.1381951656362; Wed, 16 Oct 2013 12:27:36 -0700 (PDT) Received: from seanpaul-glaptop.roam.corp.google.com (cpe-173-095-180-236.nc.res.rr.com. [173.95.180.236]) by mx.google.com with ESMTPSA id 4sm167771575qak.11.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Oct 2013 12:27:35 -0700 (PDT) From: Sean Paul To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com Subject: [PATCH v2 20/26] drm/exynos: Remove unused/useless fimd_context members Date: Wed, 16 Oct 2013 15:26:50 -0400 Message-Id: <1381951616-12548-21-git-send-email-seanpaul@chromium.org> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1381951616-12548-1-git-send-email-seanpaul@chromium.org> References: <1381951616-12548-1-git-send-email-seanpaul@chromium.org> Cc: marcheu@chromium.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,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 This patch removes a few fimd_context members which are either entirely unused or unneeded. Signed-off-by: Sean Paul --- Changes in v2: None drivers/gpu/drm/exynos/exynos_drm_fimd.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index f69d6e5..61124ca 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -121,8 +121,6 @@ struct fimd_mode_data { struct fimd_context { struct device *dev; struct drm_device *drm_dev; - int irq; - struct drm_crtc *crtc; struct clk *bus_clk; struct clk *lcd_clk; void __iomem *regs; @@ -134,7 +132,6 @@ struct fimd_context { u32 vidcon1; bool suspended; int pipe; - struct mutex lock; wait_queue_head_t wait_vsync_queue; atomic_t wait_vsync_event; @@ -547,8 +544,6 @@ static void fimd_dpms(struct exynos_drm_manager *mgr, int mode) DRM_DEBUG_KMS("%d\n", mode); - mutex_lock(&ctx->lock); - switch (mode) { case DRM_MODE_DPMS_ON: /* @@ -570,8 +565,6 @@ static void fimd_dpms(struct exynos_drm_manager *mgr, int mode) DRM_DEBUG_KMS("unspecified mode %d\n", mode); break; } - - mutex_unlock(&ctx->lock); } static u32 fimd_calc_clkdiv(struct fimd_context *ctx, @@ -964,9 +957,7 @@ static int fimd_probe(struct platform_device *pdev) return -ENXIO; } - ctx->irq = res->start; - - ret = devm_request_irq(dev, ctx->irq, fimd_irq_handler, + ret = devm_request_irq(dev, res->start, fimd_irq_handler, 0, "drm_fimd", ctx); if (ret) { dev_err(dev, "irq request failed.\n"); @@ -977,8 +968,6 @@ static int fimd_probe(struct platform_device *pdev) DRM_INIT_WAITQUEUE(&ctx->wait_vsync_queue); atomic_set(&ctx->wait_vsync_event, 0); - mutex_init(&ctx->lock); - platform_set_drvdata(pdev, &fimd_manager); fimd_manager.ctx = ctx;