[PATCH] ARM: pxa: add __init/__exit annotations to module init/exit funcs

From: Xiu Jianfeng
Date: Sat Sep 10 2022 - 23:37:05 EST


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

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