aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/isdn/gigaset/usb-gigaset.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/isdn/gigaset/usb-gigaset.c b/drivers/isdn/gigaset/usb-gigaset.c
index c8e1c357cec8..a1263019df5e 100644
--- a/drivers/isdn/gigaset/usb-gigaset.c
+++ b/drivers/isdn/gigaset/usb-gigaset.c
@@ -138,8 +138,6 @@ struct usb_cardstate {
138 char bchars[6]; /* for request 0x19 */ 138 char bchars[6]; /* for request 0x19 */
139}; 139};
140 140
141struct usb_bc_state {};
142
143static inline unsigned tiocm_to_gigaset(unsigned state) 141static inline unsigned tiocm_to_gigaset(unsigned state)
144{ 142{
145 return ((state & TIOCM_DTR) ? 1 : 0) | ((state & TIOCM_RTS) ? 2 : 0); 143 return ((state & TIOCM_DTR) ? 1 : 0) | ((state & TIOCM_RTS) ? 2 : 0);
@@ -579,25 +577,21 @@ static int gigaset_brkchars(struct cardstate *cs, const unsigned char buf[6])
579 577
580static int gigaset_freebcshw(struct bc_state *bcs) 578static int gigaset_freebcshw(struct bc_state *bcs)
581{ 579{
582 if (!bcs->hw.usb) 580 /* unused */
583 return 0;
584 //FIXME
585 kfree(bcs->hw.usb);
586 return 1; 581 return 1;
587} 582}
588 583
589/* Initialize the b-channel structure */ 584/* Initialize the b-channel structure */
590static int gigaset_initbcshw(struct bc_state *bcs) 585static int gigaset_initbcshw(struct bc_state *bcs)
591{ 586{
592 bcs->hw.usb = kmalloc(sizeof(struct usb_bc_state), GFP_KERNEL); 587 /* unused */
593 if (!bcs->hw.usb) 588 bcs->hw.usb = NULL;
594 return 0;
595
596 return 1; 589 return 1;
597} 590}
598 591
599static void gigaset_reinitbcshw(struct bc_state *bcs) 592static void gigaset_reinitbcshw(struct bc_state *bcs)
600{ 593{
594 /* nothing to do for M10x */
601} 595}
602 596
603static void gigaset_freecshw(struct cardstate *cs) 597static void gigaset_freecshw(struct cardstate *cs)