From: NeilBrown Date: Sat, 27 Aug 2005 01:34:15 +0000 (-0700) Subject: [PATCH] md: create a MODULE_ALIAS for md corresponding to its block major number. X-Git-Tag: v2.6.13~13 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=72008652dae7d10fa668d7b2ada3bddff7403d86;p=linux-2.6-omap-h63xx.git [PATCH] md: create a MODULE_ALIAS for md corresponding to its block major number. I just discovered this is needed for module auto-loading. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/md.c b/drivers/md/md.c index 486ee50cfdd..deccd560c0d 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -4011,3 +4011,4 @@ EXPORT_SYMBOL(md_print_devices); EXPORT_SYMBOL(md_check_recovery); MODULE_LICENSE("GPL"); MODULE_ALIAS("md"); +MODULE_ALIAS_BLOCKDEV_MAJOR(MD_MAJOR);