From: Scott James Remnant Date: Mon, 6 Apr 2009 16:33:04 +0000 (+0100) Subject: cyclades: Auto-load cyclades module when device opened. X-Git-Tag: v2.6.30-rc1~162 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=9f56fad741163fe2111cbbcfb7ff795ebdabdab1;p=safe%2Fjmp%2Flinux-2.6 cyclades: Auto-load cyclades module when device opened. The cyclades module is missing the char-major-19-* 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/char/cyclades.c b/drivers/char/cyclades.c index 272db0e..1fdb9f6 100644 --- a/drivers/char/cyclades.c +++ b/drivers/char/cyclades.c @@ -646,6 +646,7 @@ #include #include #include +#include #include #include @@ -5408,3 +5409,4 @@ module_exit(cy_cleanup_module); MODULE_LICENSE("GPL"); MODULE_VERSION(CY_VERSION); +MODULE_ALIAS_CHARDEV_MAJOR(CYCLADES_MAJOR);