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-Tag: upstream/snapshot3+hdmi~19423 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e766aeb882b41355d8732cf49aa9412baef852c5;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 b3d5a23..85f22c6 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);