We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc36768 commit 1fccd1eCopy full SHA for 1fccd1e
drivers/soc/mediatek/mtk-mutex.c
@@ -1067,19 +1067,7 @@ static struct platform_driver mtk_mutex_driver = {
1067
.of_match_table = mutex_driver_dt_match,
1068
},
1069
};
1070
-
1071
-static int __init mtk_mutex_init(void)
1072
-{
1073
- return platform_driver_register(&mtk_mutex_driver);
1074
-}
1075
1076
-static void __exit mtk_mutex_exit(void)
1077
1078
- platform_driver_unregister(&mtk_mutex_driver);
1079
1080
1081
-module_init(mtk_mutex_init);
1082
-module_exit(mtk_mutex_exit);
+module_platform_driver(mtk_mutex_driver);
1083
1084
MODULE_AUTHOR("Yongqiang Niu <[email protected]>");
1085
MODULE_DESCRIPTION("MediaTek SoC MUTEX driver");
0 commit comments