fs: sdfat: Add MODULE_ALIAS_FS for supported filesystems
authorPaul Keith <javelinanddart@gmail.com>
Wed, 28 Mar 2018 17:52:29 +0000 (19:52 +0200)
committerDanny Wood <danwood76@gmail.com>
Thu, 18 Feb 2021 09:08:59 +0000 (09:08 +0000)
* This is the proper thing to do for filesystem drivers

Change-Id: I109b201d85e324cc0a72c3fcd09df4a3e1703042
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
fs/sdfat/sdfat.c

index 9534725e5b25367fa985ac4915e7444970819072..704f335b4e4b9eca0733126bd196d3b6c03ef778 100644 (file)
@@ -4997,6 +4997,7 @@ static struct file_system_type sdfat_fs_type = {
 #endif /* CONFIG_SDFAT_DBG_IOCTL */
        .fs_flags    = FS_REQUIRES_DEV,
 };
+MODULE_ALIAS_FS("sdfat");
 
 #ifdef CONFIG_SDFAT_USE_FOR_EXFAT
 static struct file_system_type exfat_fs_type = {
@@ -5010,6 +5011,7 @@ static struct file_system_type exfat_fs_type = {
 #endif /* CONFIG_SDFAT_DBG_IOCTL */
        .fs_flags    = FS_REQUIRES_DEV,
 };
+MODULE_ALIAS_FS("exfat");
 #endif /* CONFIG_SDFAT_USE_FOR_EXFAT */
 
 #ifdef CONFIG_SDFAT_USE_FOR_VFAT
@@ -5024,6 +5026,7 @@ static struct file_system_type vfat_fs_type = {
 #endif /* CONFIG_SDFAT_DBG_IOCTL */
        .fs_flags    = FS_REQUIRES_DEV,
 };
+MODULE_ALIAS_FS("vfat");
 #endif /* CONFIG_SDFAT_USE_FOR_VFAT */
 
 static int __init init_sdfat_fs(void)