Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758133AbZCJQve (ORCPT ); Tue, 10 Mar 2009 12:51:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755676AbZCJQoA (ORCPT ); Tue, 10 Mar 2009 12:44:00 -0400 Received: from zelda.netsplit.com ([87.194.19.211]:34609 "EHLO zelda.netsplit.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755148AbZCJQnk (ORCPT ); Tue, 10 Mar 2009 12:43:40 -0400 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 Cc: joern@lazybastard.org, linux-mtd@lists.infradead.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1193 Lines: 35 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); -- 1.6.0.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/