From patchwork Sun Dec 7 12:31:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5451871 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 8CF469F2E8 for ; Sun, 7 Dec 2014 13:40:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C2DD220154 for ; Sun, 7 Dec 2014 13:40:54 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id DA3DE20145 for ; Sun, 7 Dec 2014 13:40:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 06E3A6E7B2; Sun, 7 Dec 2014 05:40:49 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by gabe.freedesktop.org (Postfix) with ESMTP id C693E6E85B for ; Sun, 7 Dec 2014 04:28:59 -0800 (PST) Received: by mail-wg0-f41.google.com with SMTP id y19so4212360wgg.14 for ; Sun, 07 Dec 2014 04:28:58 -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=sOHBn03PXMHWn9+rKckWNhZNNAICl1MNniqxZMt2H80=; b=fCEELw2Li9nvRuUXVIGM6bc1o4wWbWN4nxYCOmbDefwL8WHNxvmMA9Aw0Dny99ORC5 MkrBAmgt8KG0xV4/KCaXUAjyRueG6kUxwf5kFYmoadD1+qTK8fkC7VjCf6liezs7kyfP XunionolB3C3ogYGF7aKQHxx6sD66+7craeC41zVTAezdy7W4Wrx2Qu/A0sLfsz5Sj00 YXAxXa8FvKCkjxT8IAtv/p2G0NApG4MoR1ICPU1VtA6gSPUecSmahPc3F+srI4COw43d 9Gu6HPPvUvVS2Inx0yZjaf2oXIwzSetOK8HvEdSz3ZX3L/9tV2vklFi9ylYcIJ57RgQR tUxw== X-Gm-Message-State: ALoCoQknOPkc4oL1VCj5NMR5Niml++Tug2XlxwYiSr8aK9QlthOsEBbk5wzjP10Hb9zqzrp7AF32 X-Received: by 10.181.12.38 with SMTP id en6mr17722647wid.5.1417955338779; Sun, 07 Dec 2014 04:28:58 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id xt9sm19895625wjc.42.2014.12.07.04.28.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Dec 2014 04:28:58 -0800 (PST) From: Rickard Strandqvist To: David Airlie , dri-devel@lists.freedesktop.org Subject: [PATCH] gpu: drm: gma500: tc35876x-dsi-lvds.c: Remove unused function Date: Sun, 7 Dec 2014 13:31:38 +0100 Message-Id: <1417955499-10939-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-Mailman-Approved-At: Sun, 07 Dec 2014 05:40:47 -0800 Cc: linux-kernel@vger.kernel.org, Rickard Strandqvist 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 Remove the function tc35876x_exit() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c | 10 ---------- drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h | 1 - 2 files changed, 11 deletions(-) diff --git a/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c b/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c index 771ff66..3def842 100644 --- a/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c +++ b/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c @@ -817,13 +817,3 @@ void tc35876x_init(struct drm_device *dev) tc35876x_brightness_init(dev); } - -void tc35876x_exit(void) -{ - pr_debug("%s\n", __func__); - - i2c_del_driver(&tc35876x_bridge_i2c_driver); - - if (cmi_lcd_i2c_client) - i2c_del_driver(&cmi_lcd_i2c_driver); -} diff --git a/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h b/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h index b14b7f9..cf9d6bb 100644 --- a/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h +++ b/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h @@ -31,7 +31,6 @@ void tc35876x_brightness_control(struct drm_device *dev, int level); void tc35876x_toshiba_bridge_panel_off(struct drm_device *dev); void tc35876x_toshiba_bridge_panel_on(struct drm_device *dev); void tc35876x_init(struct drm_device *dev); -void tc35876x_exit(void); extern const struct panel_funcs mdfld_tc35876x_funcs;