diff options
Diffstat (limited to 'drivers/isdn/hisax/st5481_init.c')
-rw-r--r-- | drivers/isdn/hisax/st5481_init.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/isdn/hisax/st5481_init.c b/drivers/isdn/hisax/st5481_init.c index 13751237bfcd..9f7fd18ff773 100644 --- a/drivers/isdn/hisax/st5481_init.c +++ b/drivers/isdn/hisax/st5481_init.c | |||
@@ -46,8 +46,6 @@ module_param(debug, int, 0); | |||
46 | #endif | 46 | #endif |
47 | int st5481_debug; | 47 | int st5481_debug; |
48 | 48 | ||
49 | static LIST_HEAD(adapter_list); | ||
50 | |||
51 | /* ====================================================================== | 49 | /* ====================================================================== |
52 | * registration/deregistration with the USB layer | 50 | * registration/deregistration with the USB layer |
53 | */ | 51 | */ |
@@ -86,7 +84,6 @@ static int probe_st5481(struct usb_interface *intf, | |||
86 | adapter->bcs[i].b_if.ifc.priv = &adapter->bcs[i]; | 84 | adapter->bcs[i].b_if.ifc.priv = &adapter->bcs[i]; |
87 | adapter->bcs[i].b_if.ifc.l2l1 = st5481_b_l2l1; | 85 | adapter->bcs[i].b_if.ifc.l2l1 = st5481_b_l2l1; |
88 | } | 86 | } |
89 | list_add(&adapter->list, &adapter_list); | ||
90 | 87 | ||
91 | retval = st5481_setup_usb(adapter); | 88 | retval = st5481_setup_usb(adapter); |
92 | if (retval < 0) | 89 | if (retval < 0) |
@@ -125,6 +122,7 @@ static int probe_st5481(struct usb_interface *intf, | |||
125 | err_usb: | 122 | err_usb: |
126 | st5481_release_usb(adapter); | 123 | st5481_release_usb(adapter); |
127 | err: | 124 | err: |
125 | kfree(adapter); | ||
128 | return -EIO; | 126 | return -EIO; |
129 | } | 127 | } |
130 | 128 | ||
@@ -142,8 +140,6 @@ static void disconnect_st5481(struct usb_interface *intf) | |||
142 | if (!adapter) | 140 | if (!adapter) |
143 | return; | 141 | return; |
144 | 142 | ||
145 | list_del(&adapter->list); | ||
146 | |||
147 | st5481_stop(adapter); | 143 | st5481_stop(adapter); |
148 | st5481_release_b(&adapter->bcs[1]); | 144 | st5481_release_b(&adapter->bcs[1]); |
149 | st5481_release_b(&adapter->bcs[0]); | 145 | st5481_release_b(&adapter->bcs[0]); |