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-Url: https://git.stricted.de/?a=commitdiff_plain;h=72008652dae7d10fa668d7b2ada3bddff7403d86;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 486ee50cfdda..deccd560c0de 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);