From: Scott James Remnant Date: Mon, 2 Mar 2009 18:42:39 +0000 (+0000) Subject: [MTD] Auto-load mtdchar module when device opened. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=90160e13b0bfe82d8bfe83541e3aa3961fdeed25;p=linux-beck.git [MTD] Auto-load mtdchar module when device opened. The mtdchar module is missing the char-major-90-* alias that would cause it to be auto-loaded when a device of that type is opened. This patch adds the alia.. Signed-off-by: Scott James Remnant Signed-off-by: Tim Gardner Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index e9ec59e9a566..2c8a16f49ca2 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c @@ -825,3 +825,4 @@ module_exit(cleanup_mtdchar); MODULE_LICENSE("GPL"); MODULE_AUTHOR("David Woodhouse "); MODULE_DESCRIPTION("Direct character-device access to MTD devices"); +MODULE_ALIAS_CHARDEV_MAJOR(MTD_CHAR_MAJOR);