From patchwork Mon Mar 2 17:38:30 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott James Remnant X-Patchwork-Id: 24437 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 25863DE154 for ; Sat, 14 Mar 2009 18:55:37 +1100 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1LiOfV-0000XY-9d; Sat, 14 Mar 2009 07:52:29 +0000 Received: from zelda.netsplit.com ([87.194.19.211]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1Lh5a3-0006eQ-2N for linux-mtd@lists.infradead.org; Tue, 10 Mar 2009 17:17:29 +0000 Received: from scott by zelda.netsplit.com with local (Exim 4.69) (envelope-from ) id 1Lh53C-0003Lp-TD; Tue, 10 Mar 2009 16:43:30 +0000 Message-Id: In-Reply-To: References: From: Scott James Remnant Date: Mon, 2 Mar 2009 17:38:30 +0000 Subject: [PATCH 08/31] mtd: Auto-load ftl module when device opened. To: linux-kernel@vger.kernel.org X-Bad-Reply: References and In-Reply-To but no 'Re:' in Subject. X-Spam-Score: 2.3 (++) X-Spam-Report: SpamAssassin version 3.2.5 on bombadil.infradead.org summary: Content analysis details: (2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- 2.3 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date X-Mailman-Approved-At: Sat, 14 Mar 2009 03:52:24 -0400 Cc: linux-mtd@lists.infradead.org, joern@lazybastard.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Signed-off-by: Tim Gardner --- 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 #include #include +#include #include #include @@ -1116,3 +1117,4 @@ module_exit(cleanup_ftl); MODULE_LICENSE("Dual MPL/GPL"); MODULE_AUTHOR("David Hinds "); MODULE_DESCRIPTION("Support code for Flash Translation Layer, used on PCMCIA devices"); +MODULE_ALIAS_BLOCKDEV_MAJOR(FTL_MAJOR);