Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Scott James Remnant and committed by
Linus Torvalds
9f56fad7 14f8d3ff

+2
+2
drivers/char/cyclades.c
··· 646 646 #include <linux/spinlock.h> 647 647 #include <linux/bitops.h> 648 648 #include <linux/firmware.h> 649 + #include <linux/device.h> 649 650 650 651 #include <asm/system.h> 651 652 #include <linux/io.h> ··· 5409 5408 5410 5409 MODULE_LICENSE("GPL"); 5411 5410 MODULE_VERSION(CY_VERSION); 5411 + MODULE_ALIAS_CHARDEV_MAJOR(CYCLADES_MAJOR);