diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-06-25 17:59:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:25:07 -0400 |
commit | 672c3fd9069e5a138f9d4afc9aeb5aa34aacce32 (patch) | |
tree | eed95f7e577680c4a92e7f22b22b221b53934fd1 /drivers/isdn/hisax/netjet.c | |
parent | 8b3d4a2a3ef9488d4477e8823106abfd6039eb66 (diff) |
[PATCH] drivers/isdn/hisax/: possible cleanups
This patch contains the following possible cleanups:
- make needlessly global code static
- remove the compiled but unused st5481_hdlc.{c,h}
- kill enternow.h
- enternow_pci.c: kill InByte/OutByte/BYTE
- isdnl2.c: kill FreeSkb
- remove or #if 0 the following unused functions:
- config.c: IsdnCardState
- ipacx.c: ipacx_new_ph
- ipacx.c: dch_bh
- ipacx.c: setup_ipacx
- isdnl2.c: IsRR
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Kai Germaschewski <kai@germaschewski.name>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/hisax/netjet.c')
-rw-r--r-- | drivers/isdn/hisax/netjet.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/isdn/hisax/netjet.c b/drivers/isdn/hisax/netjet.c index fe61d26365d3..94da03c30c51 100644 --- a/drivers/isdn/hisax/netjet.c +++ b/drivers/isdn/hisax/netjet.c | |||
@@ -25,8 +25,6 @@ | |||
25 | #include <asm/io.h> | 25 | #include <asm/io.h> |
26 | #include "netjet.h" | 26 | #include "netjet.h" |
27 | 27 | ||
28 | const char *NETjet_revision = "$Revision: 1.29.2.4 $"; | ||
29 | |||
30 | /* Interface functions */ | 28 | /* Interface functions */ |
31 | 29 | ||
32 | u_char | 30 | u_char |
@@ -66,7 +64,7 @@ NETjet_WriteICfifo(struct IsdnCardState *cs, u_char *data, int size) | |||
66 | outsb(cs->hw.njet.isac, data, size); | 64 | outsb(cs->hw.njet.isac, data, size); |
67 | } | 65 | } |
68 | 66 | ||
69 | void fill_mem(struct BCState *bcs, u_int *pos, u_int cnt, int chan, u_char fill) | 67 | static void fill_mem(struct BCState *bcs, u_int *pos, u_int cnt, int chan, u_char fill) |
70 | { | 68 | { |
71 | u_int mask=0x000000ff, val = 0, *p=pos; | 69 | u_int mask=0x000000ff, val = 0, *p=pos; |
72 | u_int i; | 70 | u_int i; |
@@ -85,7 +83,7 @@ void fill_mem(struct BCState *bcs, u_int *pos, u_int cnt, int chan, u_char fill) | |||
85 | } | 83 | } |
86 | } | 84 | } |
87 | 85 | ||
88 | void | 86 | static void |
89 | mode_tiger(struct BCState *bcs, int mode, int bc) | 87 | mode_tiger(struct BCState *bcs, int mode, int bc) |
90 | { | 88 | { |
91 | struct IsdnCardState *cs = bcs->cs; | 89 | struct IsdnCardState *cs = bcs->cs; |
@@ -852,7 +850,7 @@ tiger_l2l1(struct PStack *st, int pr, void *arg) | |||
852 | } | 850 | } |
853 | 851 | ||
854 | 852 | ||
855 | void | 853 | static void |
856 | close_tigerstate(struct BCState *bcs) | 854 | close_tigerstate(struct BCState *bcs) |
857 | { | 855 | { |
858 | mode_tiger(bcs, 0, bcs->channel); | 856 | mode_tiger(bcs, 0, bcs->channel); |
@@ -900,7 +898,7 @@ open_tigerstate(struct IsdnCardState *cs, struct BCState *bcs) | |||
900 | return (0); | 898 | return (0); |
901 | } | 899 | } |
902 | 900 | ||
903 | int | 901 | static int |
904 | setstack_tiger(struct PStack *st, struct BCState *bcs) | 902 | setstack_tiger(struct PStack *st, struct BCState *bcs) |
905 | { | 903 | { |
906 | bcs->channel = st->l1.bc; | 904 | bcs->channel = st->l1.bc; |
@@ -966,7 +964,7 @@ inittiger(struct IsdnCardState *cs) | |||
966 | cs->bcs[1].BC_Close = close_tigerstate; | 964 | cs->bcs[1].BC_Close = close_tigerstate; |
967 | } | 965 | } |
968 | 966 | ||
969 | void | 967 | static void |
970 | releasetiger(struct IsdnCardState *cs) | 968 | releasetiger(struct IsdnCardState *cs) |
971 | { | 969 | { |
972 | if (cs->bcs[0].hw.tiger.send) { | 970 | if (cs->bcs[0].hw.tiger.send) { |