@@ -719,12 +719,12 @@ static struct platform_driver occ_driver = {
.remove = occ_remove,
};
-static int occ_init(void)
+static int __init occ_init(void)
{
return platform_driver_register(&occ_driver);
}
-static void occ_exit(void)
+static void __exit occ_exit(void)
{
platform_driver_unregister(&occ_driver);
@@ -1124,12 +1124,12 @@ static struct fsi_driver sbefifo_drv = {
}
};
-static int sbefifo_init(void)
+static int __init sbefifo_init(void)
{
return fsi_driver_register(&sbefifo_drv);
}
-static void sbefifo_exit(void)
+static void __exit sbefifo_exit(void)
{
fsi_driver_unregister(&sbefifo_drv);
}
@@ -605,12 +605,12 @@ static struct fsi_driver scom_drv = {
}
};
-static int scom_init(void)
+static int __init scom_init(void)
{
return fsi_driver_register(&scom_drv);
}
-static void scom_exit(void)
+static void __exit scom_exit(void)
{
fsi_driver_unregister(&scom_drv);
}
Add missing __init/__exit annotations to module init/exit funcs. Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> --- drivers/fsi/fsi-occ.c | 4 ++-- drivers/fsi/fsi-sbefifo.c | 4 ++-- drivers/fsi/fsi-scom.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)