[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <e0ea71d3322d398cf06fa8560a41230803b5925b.1236702228.git.scott@canonical.com>
Date: Mon, 2 Mar 2009 17:38:30 +0000
From: Scott James Remnant <scott@...onical.com>
To: linux-kernel@...r.kernel.org
Cc: joern@...ybastard.org, linux-mtd@...ts.infradead.org
Subject: [PATCH 08/31] mtd: Auto-load ftl module when device opened.
The ftl module is missing the block-major-44-* 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@...onical.com>
Signed-off-by: Tim Gardner <tim.gardner@...onical.com>
---
drivers/mtd/ftl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/ftl.c b/drivers/mtd/ftl.c
index a790c06..0af7eee 100644
--- a/drivers/mtd/ftl.c
+++ b/drivers/mtd/ftl.c
@@ -69,6 +69,7 @@
#include <linux/init.h>
#include <linux/hdreg.h>
#include <linux/vmalloc.h>
+#include <linux/blkdev.h>
#include <linux/blkpg.h>
#include <asm/uaccess.h>
@@ -1116,3 +1117,4 @@ module_exit(cleanup_ftl);
MODULE_LICENSE("Dual MPL/GPL");
MODULE_AUTHOR("David Hinds <dahinds@...rs.sourceforge.net>");
MODULE_DESCRIPTION("Support code for Flash Translation Layer, used on PCMCIA devices");
+MODULE_ALIAS_BLOCKDEV_MAJOR(FTL_MAJOR);
--
1.6.0.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists