From: Scott James Remnant Date: Mon, 6 Apr 2009 16:32:58 +0000 (+0100) Subject: applicom: Auto-load applicom module when device opened. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=14f8d3ff3141caa8bf8326381ab8e6ce06c564b8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git applicom: Auto-load applicom module when device opened. The applicom module is missing the char-major-10-157 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/applicom.c b/drivers/char/applicom.c index 05674febb0c6..73a0765344b6 100644 --- a/drivers/char/applicom.c +++ b/drivers/char/applicom.c @@ -75,6 +75,7 @@ MODULE_DEVICE_TABLE(pci, applicom_pci_tbl); MODULE_AUTHOR("David Woodhouse & Applicom International"); MODULE_DESCRIPTION("Driver for Applicom Profibus card"); MODULE_LICENSE("GPL"); +MODULE_ALIAS_MISCDEV(AC_MINOR); MODULE_SUPPORTED_DEVICE("ac");