From patchwork Mon Jul 11 11:17:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 964192 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6BBJW2v020557 for ; Mon, 11 Jul 2011 11:19:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755276Ab1GKLTg (ORCPT ); Mon, 11 Jul 2011 07:19:36 -0400 Received: from na3sys009aog118.obsmtp.com ([74.125.149.244]:60956 "EHLO na3sys009aog118.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754477Ab1GKLTg (ORCPT ); Mon, 11 Jul 2011 07:19:36 -0400 Received: from mail-gx0-f178.google.com ([209.85.161.178]) (using TLSv1) by na3sys009aob118.postini.com ([74.125.148.12]) with SMTP ID DSNKThrcR5yUtYEoPza+wvrtCOT2KRRuPn0E@postini.com; Mon, 11 Jul 2011 04:19:35 PDT Received: by gxk8 with SMTP id 8so1929789gxk.23 for ; Mon, 11 Jul 2011 04:19:35 -0700 (PDT) Received: by 10.236.145.10 with SMTP id o10mr5305117yhj.210.1310383174967; Mon, 11 Jul 2011 04:19:34 -0700 (PDT) Received: from localhost (dragon.ti.com [192.94.94.33]) by mx.google.com with ESMTPS id k8sm2891907yhm.3.2011.07.11.04.19.32 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jul 2011 04:19:34 -0700 (PDT) From: Felipe Balbi To: Tony Lindgren Cc: Linux OMAP Mailing List , =?UTF-8?q?Michael=20B=C3=BCsch?= , Felipe Balbi Subject: [PATCH 22/22] cbus: tahvo: drop static global pointer Date: Mon, 11 Jul 2011 14:17:35 +0300 Message-Id: <1310383055-20211-23-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.6 In-Reply-To: <1310383055-20211-1-git-send-email-balbi@ti.com> References: <1310383055-20211-1-git-send-email-balbi@ti.com> Organization: Texas Instruments\n Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 11 Jul 2011 11:19:37 +0000 (UTC) that's not used anywhere anymore. We can safely drop it. Signed-off-by: Felipe Balbi --- drivers/cbus/tahvo.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/cbus/tahvo.c b/drivers/cbus/tahvo.c index 784431c..43f6d6a 100644 --- a/drivers/cbus/tahvo.c +++ b/drivers/cbus/tahvo.c @@ -56,8 +56,6 @@ struct tahvo { unsigned int is_betty:1; }; -static struct tahvo *the_tahvo; - /** * __tahvo_read_reg - Reads a value from a register in Tahvo * @tahvo: pointer to tahvo structure @@ -334,7 +332,6 @@ static int __devinit tahvo_probe(struct platform_device *pdev) tahvo->irq_end = ret + MAX_TAHVO_IRQ_HANDLERS; tahvo->dev = &pdev->dev; tahvo->irq = irq; - the_tahvo = tahvo; tahvo_irq_init(tahvo); @@ -388,7 +385,6 @@ static int __devexit tahvo_remove(struct platform_device *pdev) free_irq(irq, 0); irq_free_descs(tahvo->irq_base, MAX_TAHVO_IRQ_HANDLERS); kfree(tahvo); - the_tahvo = NULL; return 0; }