From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263223AbUJ2AhV (ORCPT ); Thu, 28 Oct 2004 20:37:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263222AbUJ2Af2 (ORCPT ); Thu, 28 Oct 2004 20:35:28 -0400 Received: from emailhub.stusta.mhn.de ([141.84.69.5]:14087 "HELO mailout.stusta.mhn.de") by vger.kernel.org with SMTP id S263278AbUJ2Ab1 (ORCPT ); Thu, 28 Oct 2004 20:31:27 -0400 Date: Fri, 29 Oct 2004 02:30:55 +0200 From: Adrian Bunk To: Fernando Fuganti Cc: linux-kernel@vger.kernel.org Subject: [2.6 patch] watchdog/machzwd.c: remove unused functions Message-ID: <20041029003055.GH29142@stusta.de> References: <20041028233134.GO3207@stusta.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041028233134.GO3207@stusta.de> User-Agent: Mutt/1.5.6+20040907i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org [ this time without the problems due to a digital signature... ] The patch below removes unused functions from drivers/char/watchdog/machzwd.c diffstat output: drivers/char/watchdog/machzwd.c | 29 ----------------------------- 1 files changed, 29 deletions(-) Signed-off-by: Adrian Bunk --- linux-2.6.10-rc1-mm1-full/drivers/char/watchdog/machzwd.c.old 2004-10-28 22:57:31.000000000 +0200 +++ linux-2.6.10-rc1-mm1-full/drivers/char/watchdog/machzwd.c 2004-10-28 23:56:59.000000000 +0200 @@ -88,12 +88,6 @@ return inw(DATA_W); } -static unsigned short zf_readb(unsigned char port) -{ - outb(port, INDEX); - return inb(DATA_B); -} - MODULE_AUTHOR("Fernando Fuganti "); MODULE_DESCRIPTION("MachZ ZF-Logic Watchdog driver"); @@ -155,13 +149,6 @@ #endif -/* STATUS register functions */ - -static inline unsigned char zf_get_status(void) -{ - return zf_readb(STATUS); -} - static inline void zf_set_status(unsigned char new) { zf_writeb(STATUS, new); @@ -183,22 +170,6 @@ /* WD#? counter functions */ /* - * Just get current counter value - */ - -static inline unsigned short zf_get_timer(unsigned char n) -{ - switch(n){ - case WD1: - return zf_readw(COUNTER_1); - case WD2: - return zf_readb(COUNTER_2); - default: - return 0; - } -} - -/* * Just set counter value */