[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220911033320.122799-1-xiujianfeng@huawei.com>
Date: Sun, 11 Sep 2022 11:33:20 +0800
From: Xiu Jianfeng <xiujianfeng@...wei.com>
To: <daniel@...que.org>, <haojian.zhuang@...il.com>,
<robert.jarzmik@...e.fr>, <linux@...linux.org.uk>
CC: <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH] ARM: pxa: add __init/__exit annotations to module init/exit funcs
Add missing __init/__exit annotations to module init/exit funcs.
Signed-off-by: Xiu Jianfeng <xiujianfeng@...wei.com>
---
arch/arm/mach-pxa/corgi_pm.c | 4 ++--
arch/arm/mach-pxa/spitz_pm.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-pxa/corgi_pm.c b/arch/arm/mach-pxa/corgi_pm.c
index 555a5c1afd96..694e869a8cab 100644
--- a/arch/arm/mach-pxa/corgi_pm.c
+++ b/arch/arm/mach-pxa/corgi_pm.c
@@ -188,7 +188,7 @@ static struct sharpsl_charger_machinfo corgi_pm_machinfo = {
static struct platform_device *corgipm_device;
-static int corgipm_init(void)
+static int __init corgipm_init(void)
{
int ret;
@@ -212,7 +212,7 @@ static int corgipm_init(void)
return ret;
}
-static void corgipm_exit(void)
+static void __exit corgipm_exit(void)
{
platform_device_unregister(corgipm_device);
}
diff --git a/arch/arm/mach-pxa/spitz_pm.c b/arch/arm/mach-pxa/spitz_pm.c
index 6689b67f9ce5..6711c94d15e9 100644
--- a/arch/arm/mach-pxa/spitz_pm.c
+++ b/arch/arm/mach-pxa/spitz_pm.c
@@ -224,7 +224,7 @@ struct sharpsl_charger_machinfo spitz_pm_machinfo = {
static struct platform_device *spitzpm_device;
-static int spitzpm_init(void)
+static int __init spitzpm_init(void)
{
int ret;
@@ -245,7 +245,7 @@ static int spitzpm_init(void)
return ret;
}
-static void spitzpm_exit(void)
+static void __exit spitzpm_exit(void)
{
platform_device_unregister(spitzpm_device);
}
--
2.17.1
Powered by blists - more mailing lists