From patchwork Fri Oct 11 00:30:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 3020021 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 8D973BF924 for ; Fri, 11 Oct 2013 00:54:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BF8D920254 for ; Fri, 11 Oct 2013 00:54:25 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id EF3A12021B for ; Fri, 11 Oct 2013 00:54:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EC4FCE6664 for ; Thu, 10 Oct 2013 17:54:24 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ie0-f176.google.com (mail-ie0-f176.google.com [209.85.223.176]) by gabe.freedesktop.org (Postfix) with ESMTP id D6253E767D for ; Thu, 10 Oct 2013 17:31:23 -0700 (PDT) Received: by mail-ie0-f176.google.com with SMTP id ar20so6453045iec.7 for ; Thu, 10 Oct 2013 17:31:23 -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=pR4RflWiw0UJVLzwqVR4QZQ6CgJR+sg9cO0Rtyx3p6M=; b=gaJpkf3YytlLyHEbnzubk/WSY6ABoYTJNPBhRkxqo3tuzFLc0MOAe4MY7b06bXRVzG TRtXjK4YwkLANGlmmJmbZ3moh5P3YkKUWdbQAoSS7Sm7xfi4+CPPYHmeYxC7pO7rs2x7 PUKvZK/lQR8fAZuu9JVK0wIQBxin0nIkoy4GU= 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=pR4RflWiw0UJVLzwqVR4QZQ6CgJR+sg9cO0Rtyx3p6M=; b=lfB1SGY3d8yJmIJAiW3O/DzTVwMrHw2mcOqmxhh5LaFyTgcEyJwgI+IYH/qvtOOO++ LLy1fDxd2y7DMRZtrz/Qhcpp/s2ODmLwxLRIn3IxkzIwpHnPoSJkBfBGA8pUvs9k7Vkt Jl4RaZUBOhdPKU7PrdOrPrclq1UOo8Jm94cjyOleQ20570M1S0xO/JPSDeNEBfbPjn8q QDCj7gVd7ClbfmhoYLXbuMhb6TdwJDgBWmZHmYsGJpRtt7fHc7yv3zo1ohzYVtQwYk/n dJDpOgqpyquKHJ3yaYljhmC6c53uzNkpLeUENK19SUUb2Q7xGDj5bKPxuSg1HRx08Oto 8iKw== X-Gm-Message-State: ALoCoQnTvuQfXJXVs0aySMSaAd3R6P7kSht+CFyUwCuFmbvpbbu2uRKSvgDbr0rFZdWis/9dU5sW X-Received: by 10.50.110.74 with SMTP id hy10mr1094909igb.0.1381451483486; Thu, 10 Oct 2013 17:31:23 -0700 (PDT) Received: from seanpaul-glaptop.corp.google.com (dhcp-172-19-29-233.mtv.corp.google.com [172.19.29.233]) by mx.google.com with ESMTPSA id p7sm420421iga.3.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Oct 2013 17:31:22 -0700 (PDT) From: Sean Paul To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com Subject: [PATCH 20/23] drm/exynos: Remove unused/useless fimd_context members Date: Thu, 10 Oct 2013 20:30:33 -0400 Message-Id: <1381451436-10089-21-git-send-email-seanpaul@chromium.org> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1381451436-10089-1-git-send-email-seanpaul@chromium.org> References: <1381451436-10089-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.3 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 --- 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 1b128cf..f2d7058 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; @@ -545,8 +542,6 @@ static void fimd_dpms(void *in_ctx, int mode) DRM_DEBUG_KMS("%d\n", mode); - mutex_lock(&ctx->lock); - switch (mode) { case DRM_MODE_DPMS_ON: /* @@ -568,8 +563,6 @@ static void fimd_dpms(void *in_ctx, int mode) DRM_DEBUG_KMS("unspecified mode %d\n", mode); break; } - - mutex_unlock(&ctx->lock); } static u32 fimd_calc_clkdiv(struct fimd_context *ctx, @@ -953,9 +946,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"); @@ -966,8 +957,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, ctx); pm_runtime_enable(dev);