diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-06-25 17:58:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:24:56 -0400 |
commit | e3ca5e762c2aca373f1762cbc622ebe20fd20869 (patch) | |
tree | 88e4265d0e12f6b42a23e56355679a87e278f867 /drivers/isdn/sc/timer.c | |
parent | 594dd2c98101a5dc279153ec806d554e6b8a1e35 (diff) |
[PATCH] drivers/isdn/sc/: possible cleanups
This patch contains the following possible cleanips:
- make some needlessly global code static
- remove the compiled but completely unused debug.c
- remove or #if 0 the following unused global functions:
- command.c: loopback
- command.c: loadproc
- init.c: irq_supported
- packet.c: print_skb
- shmem.c: memset_shmem
- timer.c: trace_timer
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/sc/timer.c')
-rw-r--r-- | drivers/isdn/sc/timer.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/isdn/sc/timer.c b/drivers/isdn/sc/timer.c index 710d0f47ca35..aced19aac5a2 100644 --- a/drivers/isdn/sc/timer.c +++ b/drivers/isdn/sc/timer.c | |||
@@ -32,7 +32,7 @@ extern int sendmessage(int, unsigned int, unsigned int, unsigned int, | |||
32 | /* | 32 | /* |
33 | * Write the proper values into the I/O ports following a reset | 33 | * Write the proper values into the I/O ports following a reset |
34 | */ | 34 | */ |
35 | void setup_ports(int card) | 35 | static void setup_ports(int card) |
36 | { | 36 | { |
37 | 37 | ||
38 | outb((sc_adapter[card]->rambase >> 12), sc_adapter[card]->ioport[EXP_BASE]); | 38 | outb((sc_adapter[card]->rambase >> 12), sc_adapter[card]->ioport[EXP_BASE]); |
@@ -129,19 +129,3 @@ void check_phystat(unsigned long data) | |||
129 | ceReqPhyStatus,0,0,NULL); | 129 | ceReqPhyStatus,0,0,NULL); |
130 | } | 130 | } |
131 | 131 | ||
132 | /* | ||
133 | * When in trace mode, this callback is used to swap the working shared | ||
134 | * RAM page to the trace page(s) and process all received messages. It | ||
135 | * must be called often enough to get all of the messages out of RAM before | ||
136 | * it loops around. | ||
137 | * Trace messages are \n terminated strings. | ||
138 | * We output the messages in 64 byte chunks through readstat. Each chunk | ||
139 | * is scanned for a \n followed by a time stamp. If the timerstamp is older | ||
140 | * than the current time, scanning stops and the page and offset are recorded | ||
141 | * as the starting point the next time the trace timer is called. The final | ||
142 | * step is to restore the working page and reset the timer. | ||
143 | */ | ||
144 | void trace_timer(unsigned long data) | ||
145 | { | ||
146 | /* not implemented */ | ||
147 | } | ||