Kaynağa Gözat

p54usb: stop USB core interference in exit path

The patch fixes a problem when the (Soft)LED stayed on after the module was unloaded.
It turned out that the USB core disables all endpoints before calling the disconnect method.
So it was impossible to switch off the radio & LEDs.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Christian Lamparter 16 yıl önce
ebeveyn
işleme
fbf95296c1
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      drivers/net/wireless/p54/p54usb.c

+ 1 - 0
drivers/net/wireless/p54/p54usb.c

@@ -1024,6 +1024,7 @@ static struct usb_driver p54u_driver = {
 	.disconnect = p54u_disconnect,
 	.disconnect = p54u_disconnect,
 	.pre_reset = p54u_pre_reset,
 	.pre_reset = p54u_pre_reset,
 	.post_reset = p54u_post_reset,
 	.post_reset = p54u_post_reset,
+	.soft_unbind = 1,
 };
 };
 
 
 static int __init p54u_init(void)
 static int __init p54u_init(void)