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/avm_pci.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/avm_pci.c')
-rw-r--r-- | drivers/isdn/hisax/avm_pci.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/drivers/isdn/hisax/avm_pci.c b/drivers/isdn/hisax/avm_pci.c index 6fcb2cf7b0b6..625799ab0d14 100644 --- a/drivers/isdn/hisax/avm_pci.c +++ b/drivers/isdn/hisax/avm_pci.c | |||
@@ -172,7 +172,7 @@ struct BCState *Sel_BCS(struct IsdnCardState *cs, int channel) | |||
172 | return(NULL); | 172 | return(NULL); |
173 | } | 173 | } |
174 | 174 | ||
175 | void | 175 | static void |
176 | write_ctrl(struct BCState *bcs, int which) { | 176 | write_ctrl(struct BCState *bcs, int which) { |
177 | 177 | ||
178 | if (bcs->cs->debug & L1_DEB_HSCX) | 178 | if (bcs->cs->debug & L1_DEB_HSCX) |
@@ -193,7 +193,7 @@ write_ctrl(struct BCState *bcs, int which) { | |||
193 | } | 193 | } |
194 | } | 194 | } |
195 | 195 | ||
196 | void | 196 | static void |
197 | modehdlc(struct BCState *bcs, int mode, int bc) | 197 | modehdlc(struct BCState *bcs, int mode, int bc) |
198 | { | 198 | { |
199 | struct IsdnCardState *cs = bcs->cs; | 199 | struct IsdnCardState *cs = bcs->cs; |
@@ -451,7 +451,7 @@ HDLC_irq(struct BCState *bcs, u_int stat) { | |||
451 | } | 451 | } |
452 | } | 452 | } |
453 | 453 | ||
454 | inline void | 454 | static inline void |
455 | HDLC_irq_main(struct IsdnCardState *cs) | 455 | HDLC_irq_main(struct IsdnCardState *cs) |
456 | { | 456 | { |
457 | u_int stat; | 457 | u_int stat; |
@@ -487,7 +487,7 @@ HDLC_irq_main(struct IsdnCardState *cs) | |||
487 | } | 487 | } |
488 | } | 488 | } |
489 | 489 | ||
490 | void | 490 | static void |
491 | hdlc_l2l1(struct PStack *st, int pr, void *arg) | 491 | hdlc_l2l1(struct PStack *st, int pr, void *arg) |
492 | { | 492 | { |
493 | struct BCState *bcs = st->l1.bcs; | 493 | struct BCState *bcs = st->l1.bcs; |
@@ -547,7 +547,7 @@ hdlc_l2l1(struct PStack *st, int pr, void *arg) | |||
547 | } | 547 | } |
548 | } | 548 | } |
549 | 549 | ||
550 | void | 550 | static void |
551 | close_hdlcstate(struct BCState *bcs) | 551 | close_hdlcstate(struct BCState *bcs) |
552 | { | 552 | { |
553 | modehdlc(bcs, 0, 0); | 553 | modehdlc(bcs, 0, 0); |
@@ -570,7 +570,7 @@ close_hdlcstate(struct BCState *bcs) | |||
570 | } | 570 | } |
571 | } | 571 | } |
572 | 572 | ||
573 | int | 573 | static int |
574 | open_hdlcstate(struct IsdnCardState *cs, struct BCState *bcs) | 574 | open_hdlcstate(struct IsdnCardState *cs, struct BCState *bcs) |
575 | { | 575 | { |
576 | if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { | 576 | if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { |
@@ -598,7 +598,7 @@ open_hdlcstate(struct IsdnCardState *cs, struct BCState *bcs) | |||
598 | return (0); | 598 | return (0); |
599 | } | 599 | } |
600 | 600 | ||
601 | int | 601 | static int |
602 | setstack_hdlc(struct PStack *st, struct BCState *bcs) | 602 | setstack_hdlc(struct PStack *st, struct BCState *bcs) |
603 | { | 603 | { |
604 | bcs->channel = st->l1.bc; | 604 | bcs->channel = st->l1.bc; |
@@ -612,6 +612,7 @@ setstack_hdlc(struct PStack *st, struct BCState *bcs) | |||
612 | return (0); | 612 | return (0); |
613 | } | 613 | } |
614 | 614 | ||
615 | #if 0 | ||
615 | void __init | 616 | void __init |
616 | clear_pending_hdlc_ints(struct IsdnCardState *cs) | 617 | clear_pending_hdlc_ints(struct IsdnCardState *cs) |
617 | { | 618 | { |
@@ -641,8 +642,9 @@ clear_pending_hdlc_ints(struct IsdnCardState *cs) | |||
641 | debugl1(cs, "HDLC 2 VIN %x", val); | 642 | debugl1(cs, "HDLC 2 VIN %x", val); |
642 | } | 643 | } |
643 | } | 644 | } |
645 | #endif /* 0 */ | ||
644 | 646 | ||
645 | void __init | 647 | static void __init |
646 | inithdlc(struct IsdnCardState *cs) | 648 | inithdlc(struct IsdnCardState *cs) |
647 | { | 649 | { |
648 | cs->bcs[0].BC_SetStack = setstack_hdlc; | 650 | cs->bcs[0].BC_SetStack = setstack_hdlc; |