Commit f6646b83 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] watchdog/machzwd.c: remove unused functions

The patch below removes unused functions from drivers/char/watchdog/machzwd.c
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6316fda7
......@@ -88,12 +88,6 @@ static unsigned short zf_readw(unsigned char port)
return inw(DATA_W);
}
static unsigned short zf_readb(unsigned char port)
{
outb(port, INDEX);
return inb(DATA_B);
}
MODULE_AUTHOR("Fernando Fuganti <fuganti@conectiva.com.br>");
MODULE_DESCRIPTION("MachZ ZF-Logic Watchdog driver");
......@@ -155,13 +149,6 @@ static unsigned long next_heartbeat = 0;
#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);
......@@ -182,22 +169,6 @@ static inline void zf_set_control(unsigned short new)
/* 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
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment