From patchwork Mon Mar 2 17:43:04 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: 24438 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 5F113DE154 for ; Sat, 14 Mar 2009 18:55:39 +1100 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1LiOfU-0000XT-Hk; Sat, 14 Mar 2009 07:52:28 +0000 Received: from zelda.netsplit.com ([87.194.19.211]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1Lh5Zd-0006d5-Cf for linux-mtd@lists.infradead.org; Tue, 10 Mar 2009 17:17:04 +0000 Received: from scott by zelda.netsplit.com with local (Exim 4.69) (envelope-from ) id 1Lh53D-0003M7-7H; Tue, 10 Mar 2009 16:43:31 +0000 Message-Id: <6a809405735d17d1183aa585314ff55b516a48b0.1236702228.git.scott@canonical.com> In-Reply-To: References: From: Scott James Remnant Date: Mon, 2 Mar 2009 17:43:04 +0000 Subject: [PATCH 11/31] mtd: Auto-load nftl 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, dwmw2@infradead.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 nftl module is missing the block-major-93-* alias that would cause it to be auto-loaded when a nftl of that type is opened. This patch adds the alias. Signed-off-by: Scott James Remnant Signed-off-by: Tim Gardner --- drivers/mtd/nftlcore.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/nftlcore.c b/drivers/mtd/nftlcore.c index d1c4546..ff0a249 100644 --- a/drivers/mtd/nftlcore.c +++ b/drivers/mtd/nftlcore.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -818,3 +819,4 @@ module_exit(cleanup_nftl); MODULE_LICENSE("GPL"); MODULE_AUTHOR("David Woodhouse , Fabrice Bellard et al."); MODULE_DESCRIPTION("Support code for NAND Flash Translation Layer, used on M-Systems DiskOnChip 2000 and Millennium"); +MODULE_ALIAS_BLOCKDEV_MAJOR(NFTL_MAJOR);