diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/isdn/gigaset/usb-gigaset.c | 14 |
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 | ||
| 141 | struct usb_bc_state {}; | ||
| 142 | |||
| 143 | static inline unsigned tiocm_to_gigaset(unsigned state) | 141 | static 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 | ||
| 580 | static int gigaset_freebcshw(struct bc_state *bcs) | 578 | static 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 */ |
| 590 | static int gigaset_initbcshw(struct bc_state *bcs) | 585 | static 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 | ||
| 599 | static void gigaset_reinitbcshw(struct bc_state *bcs) | 592 | static void gigaset_reinitbcshw(struct bc_state *bcs) |
| 600 | { | 593 | { |
| 594 | /* nothing to do for M10x */ | ||
| 601 | } | 595 | } |
| 602 | 596 | ||
| 603 | static void gigaset_freecshw(struct cardstate *cs) | 597 | static void gigaset_freecshw(struct cardstate *cs) |
