[PATCH] fsi: Add __init/__exit annotations to module init/exit funcs

From: Xiu Jianfeng
Date: Fri Sep 23 2022 - 20:56:08 EST


Add missing __init/__exit annotations to module init/exit funcs.

Signed-off-by: Xiu Jianfeng <xiujianfeng@xxxxxxxxxx>
---
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(-)

diff --git a/drivers/fsi/fsi-occ.c b/drivers/fsi/fsi-occ.c
index 8f7f602b909d..69273575f61f 100644
--- a/drivers/fsi/fsi-occ.c
+++ b/drivers/fsi/fsi-occ.c
@@ -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);

diff --git a/drivers/fsi/fsi-sbefifo.c b/drivers/fsi/fsi-sbefifo.c
index 5f93a53846aa..bf313689012a 100644
--- a/drivers/fsi/fsi-sbefifo.c
+++ b/drivers/fsi/fsi-sbefifo.c
@@ -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);
}
diff --git a/drivers/fsi/fsi-scom.c b/drivers/fsi/fsi-scom.c
index bcb756dc9866..10f071255a85 100644
--- a/drivers/fsi/fsi-scom.c
+++ b/drivers/fsi/fsi-scom.c
@@ -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);
}
--
2.17.1