Skip to contentSkip to conversation

usb.rc stop - remove xpad module too

PATCH New Andrey Borzenkov 1 participant 1 message May 1, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb.rc stop - remove xpad module too

My 2.6.11-8mdk kernel has xpad module that prevents usbcore from being unloaded:

{pts/2}% modinfo xpad

filename:       /lib/modules/2.6.11-8mdk/kernel/drivers/usb/input/xpad.ko.gz
author:         Marko Friedemann <[email protected]>, Oliver Schwartz 
<[email protected]>, Georg Lukas <[email protected]>
description:    driver for Xbox controllers with mouse emulation
license:        GPL

here is trivial patch that adds it to module list to remove.

regards

-andrey

home/bor/tmp/usb.rc 2005-05-01 20:11:53.000000000 +0400 renamed from home/bor/tmp/usb.rc.xpad 2004-09-21 02:30:35.000000000 +0400 +1 -0
@@ -305,6 +305,7 @@ maybe_stop_usb ()
     rmmod visor            >/dev/null 2>&1
     rmmod wacom            >/dev/null 2>&1
     rmmod whiteheat        >/dev/null 2>&1
+    rmmod xpad             >/dev/null 2>&1
 
     if [ "$STATIC_MODULE_LIST" != "" ]; then
        rmmod $STATIC_MODULE_LIST >/dev/null 2>&1