Received: with ECARTIS (v1.0.0; list netdev); Mon, 18 Apr 2005 19:41:47 -0700 (PDT) Received: from mailout.stusta.mhn.de (mailout.stusta.mhn.de [141.84.69.5]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id j3J2fdXt030354 for ; Mon, 18 Apr 2005 19:41:40 -0700 Received: (qmail 6918 invoked from network); 19 Apr 2005 02:41:34 -0000 Received: from r063144.stusta.swh.mhn.de (10.150.63.144) by mailout.stusta.mhn.de with SMTP; 19 Apr 2005 02:41:34 -0000 Received: by r063144.stusta.swh.mhn.de (Postfix, from userid 1000) id 95D24BB58E; Tue, 19 Apr 2005 04:41:33 +0200 (CEST) Date: Tue, 19 Apr 2005 04:41:33 +0200 From: Adrian Bunk To: irda-users@lists.sourceforge.net Cc: Jeff Garzik , linux-kernel@vger.kernel.org, netdev@oss.sgi.com Subject: [2.6 patch] drivers/net/irda/irport.c: cleanups Message-ID: <20050419024133.GV5489@stusta.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: ClamAV 0.83/837/Sun Apr 17 08:25:32 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 1848 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: bunk@stusta.de Precedence: bulk X-list: netdev Content-Length: 1039 Lines: 43 This patch contains the following cleanups: - make a needlessly global function static - remove the unneeded global function irport_probe Signed-off-by: Adrian Bunk --- drivers/net/irda/irport.c | 15 +-------------- 1 files changed, 1 insertion(+), 14 deletions(-) --- linux-2.6.12-rc2-mm3-full/drivers/net/irda/irport.c.old 2005-04-19 03:06:12.000000000 +0200 +++ linux-2.6.12-rc2-mm3-full/drivers/net/irda/irport.c 2005-04-19 03:06:45.000000000 +0200 @@ -286,19 +286,6 @@ } /* - * Function irport_probe (void) - * - * Start IO port - * - */ -int irport_probe(int iobase) -{ - IRDA_DEBUG(4, "%s(), iobase=%#x\n", __FUNCTION__, iobase); - - return 0; -} - -/* * Function irport_get_fcr (speed) * * Compute value of fcr @@ -383,7 +370,7 @@ * we cannot use schedule_timeout() when we are in interrupt context * */ -int __irport_change_speed(struct irda_task *task) +static int __irport_change_speed(struct irda_task *task) { struct irport_cb *self; __u32 speed = (__u32) task->param;