From patchwork Sun Jan 11 22:36:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5616971 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C594F9F3A0 for ; Tue, 13 Jan 2015 01:26:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EF8F120504 for ; Tue, 13 Jan 2015 01:26:00 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 72472204C9 for ; Tue, 13 Jan 2015 01:25:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7217B6E3CD; Mon, 12 Jan 2015 17:25:57 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by gabe.freedesktop.org (Postfix) with ESMTP id ED4E46E182 for ; Sun, 11 Jan 2015 14:33:42 -0800 (PST) Received: by mail-wi0-f172.google.com with SMTP id n3so11244065wiv.5 for ; Sun, 11 Jan 2015 14:33:42 -0800 (PST) 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; bh=GlS5V076R0999b8hD1iD1FPm3GQC/VDJ4ssYG5oyP2o=; b=SqI9ZCYta64tuf96fTe6A3CaCgNPlu6AARZRKvZigqvz+02qpW5vQ0LnjstokSctxA f2nmixs9GXzzpBbyoKDDeKH8HeRlAOQ4tCGUEVx08PlSEKDxyanSHoX0b+j9qeTizMB6 e1rLOAfRueT2LW6JXgPgH/Gtk7/qAV4azcnlAYbp1fDrvAa6Q2qaZ0tYbdD/tCgNxQmj zZ45KTidSVCkgbgGETp/OsDlS09M4vp1hDJTH4cKj/2MW8PAjuPL9ntJcIFRegTpK0+S eO4UUrJLDvnBzuQKll//5xpnup6O9y5kaY5/aTGGmXpxbqVNtI4BJg8qIms/T4QJeb6J k2+Q== X-Gm-Message-State: ALoCoQn9zbEsgJQU/cav369LK/QxYZIgXHIfmr/nXJmdh0WUBU/3Blseh3gv4eRKTW43d2CyrE6a X-Received: by 10.194.91.234 with SMTP id ch10mr20906728wjb.114.1421015622070; Sun, 11 Jan 2015 14:33:42 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id 18sm19162355wjr.46.2015.01.11.14.33.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Jan 2015 14:33:41 -0800 (PST) From: Rickard Strandqvist To: David Airlie , Ben Skeggs Subject: [PATCH] drm/nouveau/dispnv04/disp: Remove some unused functions Date: Sun, 11 Jan 2015 23:36:47 +0100 Message-Id: <1421015807-25273-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-Mailman-Approved-At: Mon, 12 Jan 2015 17:25:56 -0800 Cc: Rickard Strandqvist , Jani Nikula , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Dave Airlie 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 Removes some functions that are not used anywhere: nv04_display_late_takedown() nv04_display_early_init() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/gpu/drm/nouveau/dispnv04/disp.c | 18 ------------------ drivers/gpu/drm/nouveau/dispnv04/disp.h | 2 -- 2 files changed, 20 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv04/disp.c b/drivers/gpu/drm/nouveau/dispnv04/disp.c index 3d0afa1..bdf7cf4 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv04/disp.c @@ -32,24 +32,6 @@ #include "nouveau_connector.h" int -nv04_display_early_init(struct drm_device *dev) -{ - /* ensure vblank interrupts are off, they can't be enabled until - * drm_vblank has been initialised - */ - NVWriteCRTC(dev, 0, NV_PCRTC_INTR_EN_0, 0); - if (nv_two_heads(dev)) - NVWriteCRTC(dev, 1, NV_PCRTC_INTR_EN_0, 0); - - return 0; -} - -void -nv04_display_late_takedown(struct drm_device *dev) -{ -} - -int nv04_display_create(struct drm_device *dev) { struct nouveau_drm *drm = nouveau_drm(dev); diff --git a/drivers/gpu/drm/nouveau/dispnv04/disp.h b/drivers/gpu/drm/nouveau/dispnv04/disp.h index 17b899d..3ad3ee8 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/disp.h +++ b/drivers/gpu/drm/nouveau/dispnv04/disp.h @@ -90,8 +90,6 @@ nv04_display(struct drm_device *dev) } /* nv04_display.c */ -int nv04_display_early_init(struct drm_device *); -void nv04_display_late_takedown(struct drm_device *); int nv04_display_create(struct drm_device *); void nv04_display_destroy(struct drm_device *); int nv04_display_init(struct drm_device *);