From: Scott James Remnant Date: Mon, 6 Apr 2009 16:33:18 +0000 (+0100) Subject: usb: Auto-load cdc_acm module when device opened. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e766aeb882b41355d8732cf49aa9412baef852c5;p=openwrt%2Fstaging%2Fblogic.git usb: Auto-load cdc_acm module when device opened. 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 Signed-off-by: Tim Gardner Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index b3d5a23ab56f..85f22c6da567 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -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);