Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mmc: host: Remove unnecessary module_init/exit functions

Three MMC drivers have unnecessary module_init and module_exit functions
that are empty or just print a message. Remove them. Note that if a
module_init function exists, a module_exit function must also exist;
otherwise, the module cannot be unloaded.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Acked-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Ethan Nelson-Moore and committed by
Ulf Hansson
97720432 d6bf2e64

+1 -38
-13
drivers/mmc/host/dw_mmc.c
··· 3529 3529 }; 3530 3530 EXPORT_SYMBOL_GPL(dw_mci_pltfm_pmops); 3531 3531 3532 - static int __init dw_mci_init(void) 3533 - { 3534 - pr_info("Synopsys Designware Multimedia Card Interface Driver\n"); 3535 - return 0; 3536 - } 3537 - 3538 - static void __exit dw_mci_exit(void) 3539 - { 3540 - } 3541 - 3542 - module_init(dw_mci_init); 3543 - module_exit(dw_mci_exit); 3544 - 3545 3532 MODULE_DESCRIPTION("DW Multimedia Card Interface driver"); 3546 3533 MODULE_AUTHOR("NXP Semiconductor VietNam"); 3547 3534 MODULE_AUTHOR("Imagination Technologies Ltd");
-13
drivers/mmc/host/sdhci-pltfm.c
··· 215 215 }; 216 216 EXPORT_SYMBOL_GPL(sdhci_pltfm_pmops); 217 217 218 - static int __init sdhci_pltfm_drv_init(void) 219 - { 220 - pr_info("sdhci-pltfm: SDHCI platform and OF driver helper\n"); 221 - 222 - return 0; 223 - } 224 - module_init(sdhci_pltfm_drv_init); 225 - 226 - static void __exit sdhci_pltfm_drv_exit(void) 227 - { 228 - } 229 - module_exit(sdhci_pltfm_drv_exit); 230 - 231 218 MODULE_DESCRIPTION("SDHCI platform and OF driver helper"); 232 219 MODULE_AUTHOR("Intel Corporation"); 233 220 MODULE_LICENSE("GPL v2");
+1 -12
drivers/mmc/host/sdhci-uhs2.c
··· 1126 1126 1127 1127 /*****************************************************************************\ 1128 1128 * * 1129 - * Driver init/exit * 1129 + * Driver init * 1130 1130 * * 1131 1131 \*****************************************************************************/ 1132 1132 ··· 1137 1137 1138 1138 return 0; 1139 1139 } 1140 - 1141 - static int __init sdhci_uhs2_mod_init(void) 1142 - { 1143 - return 0; 1144 - } 1145 - module_init(sdhci_uhs2_mod_init); 1146 - 1147 - static void __exit sdhci_uhs2_mod_exit(void) 1148 - { 1149 - } 1150 - module_exit(sdhci_uhs2_mod_exit); 1151 1140 1152 1141 /*****************************************************************************\ 1153 1142 *