]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
usb: Auto-load cdc_acm module when device opened.
authorScott James Remnant <scott@canonical.com>
Mon, 6 Apr 2009 16:33:18 +0000 (17:33 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 6 Apr 2009 21:36:31 +0000 (14:36 -0700)
The cdc_acm module is missing the char-major-166-* alias that would
cause it to be auto-loaded when a device of that type is opened.  This
patch adds the alias.

Signed-off-by: Scott James Remnant <scott@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/usb/class/cdc-acm.c

index b3d5a23ab56fbf5c3832aa76d69e27caf15a9ff4..85f22c6da56712b4b709560fbea6b6691bb4c33d 100644 (file)
@@ -1493,4 +1493,4 @@ module_exit(acm_exit);
 MODULE_AUTHOR( DRIVER_AUTHOR );
 MODULE_DESCRIPTION( DRIVER_DESC );
 MODULE_LICENSE("GPL");
-
+MODULE_ALIAS_CHARDEV_MAJOR(ACM_TTY_MAJOR);