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/hfc_2bs0.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/hfc_2bs0.c')
-rw-r--r-- | drivers/isdn/hisax/hfc_2bs0.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/isdn/hisax/hfc_2bs0.c b/drivers/isdn/hisax/hfc_2bs0.c index bb376f39ac89..f978a5af8662 100644 --- a/drivers/isdn/hisax/hfc_2bs0.c +++ b/drivers/isdn/hisax/hfc_2bs0.c | |||
@@ -52,7 +52,7 @@ WaitNoBusy(struct IsdnCardState *cs) | |||
52 | return (to); | 52 | return (to); |
53 | } | 53 | } |
54 | 54 | ||
55 | int | 55 | static int |
56 | GetFreeFifoBytes(struct BCState *bcs) | 56 | GetFreeFifoBytes(struct BCState *bcs) |
57 | { | 57 | { |
58 | int s; | 58 | int s; |
@@ -66,7 +66,7 @@ GetFreeFifoBytes(struct BCState *bcs) | |||
66 | return (s); | 66 | return (s); |
67 | } | 67 | } |
68 | 68 | ||
69 | int | 69 | static int |
70 | ReadZReg(struct BCState *bcs, u_char reg) | 70 | ReadZReg(struct BCState *bcs, u_char reg) |
71 | { | 71 | { |
72 | int val; | 72 | int val; |
@@ -394,7 +394,7 @@ main_irq_hfc(struct BCState *bcs) | |||
394 | return; | 394 | return; |
395 | } | 395 | } |
396 | 396 | ||
397 | void | 397 | static void |
398 | mode_hfc(struct BCState *bcs, int mode, int bc) | 398 | mode_hfc(struct BCState *bcs, int mode, int bc) |
399 | { | 399 | { |
400 | struct IsdnCardState *cs = bcs->cs; | 400 | struct IsdnCardState *cs = bcs->cs; |
@@ -507,7 +507,7 @@ hfc_l2l1(struct PStack *st, int pr, void *arg) | |||
507 | } | 507 | } |
508 | 508 | ||
509 | 509 | ||
510 | void | 510 | static void |
511 | close_hfcstate(struct BCState *bcs) | 511 | close_hfcstate(struct BCState *bcs) |
512 | { | 512 | { |
513 | mode_hfc(bcs, 0, bcs->channel); | 513 | mode_hfc(bcs, 0, bcs->channel); |
@@ -537,7 +537,7 @@ open_hfcstate(struct IsdnCardState *cs, struct BCState *bcs) | |||
537 | return (0); | 537 | return (0); |
538 | } | 538 | } |
539 | 539 | ||
540 | int | 540 | static int |
541 | setstack_hfc(struct PStack *st, struct BCState *bcs) | 541 | setstack_hfc(struct PStack *st, struct BCState *bcs) |
542 | { | 542 | { |
543 | bcs->channel = st->l1.bc; | 543 | bcs->channel = st->l1.bc; |
@@ -551,7 +551,7 @@ setstack_hfc(struct PStack *st, struct BCState *bcs) | |||
551 | return (0); | 551 | return (0); |
552 | } | 552 | } |
553 | 553 | ||
554 | void __init | 554 | static void __init |
555 | init_send(struct BCState *bcs) | 555 | init_send(struct BCState *bcs) |
556 | { | 556 | { |
557 | int i; | 557 | int i; |