[PATCH] x86: platform: add __init/__exit annotations to module init/exit funcs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Xiu Jianfeng <xiujianfeng@xxxxxxxxxx>
---
 arch/x86/platform/iris/iris.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/platform/iris/iris.c b/arch/x86/platform/iris/iris.c
index b42bfdab01a9..d3381340c5f3 100644
--- a/arch/x86/platform/iris/iris.c
+++ b/arch/x86/platform/iris/iris.c
@@ -88,7 +88,7 @@ static struct resource iris_resources[] = {
 
 static struct platform_device *iris_device;
 
-static int iris_init(void)
+static int __init iris_init(void)
 {
 	int ret;
 	if (force != 1) {
@@ -112,7 +112,7 @@ static int iris_init(void)
 	return 0;
 }
 
-static void iris_exit(void)
+static void __exit iris_exit(void)
 {
 	platform_device_unregister(iris_device);
 	platform_driver_unregister(&iris_driver);
-- 
2.17.1




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux