diag: Silence section mismatches
The diag code is improperly using the __init/__exit markings and
calling functions that don't exist at certain times. Remove the
init and exit markings as these functions are used from both init
and exit context. Note another solution is possible where init
functions are only called from init functions but that would
break the error handling here so we just remove the markings for
simplicity.
Change-Id: I86677b74676871504b1b47f21c92002757ae194a
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/drivers/char/diag/diagfwd_hsic.c b/drivers/char/diag/diagfwd_hsic.c
index b2080b3..4ecf000 100644
--- a/drivers/char/diag/diagfwd_hsic.c
+++ b/drivers/char/diag/diagfwd_hsic.c
@@ -511,7 +511,7 @@
};
-void __init diagfwd_hsic_init(void)
+void diagfwd_hsic_init(void)
{
int ret;
@@ -540,7 +540,7 @@
pr_err("DIAG could not initialize for HSIC execution\n");
}
-void __exit diagfwd_hsic_exit(void)
+void diagfwd_hsic_exit(void)
{
pr_debug("DIAG in %s\n", __func__);
diff --git a/drivers/char/diag/diagfwd_hsic.h b/drivers/char/diag/diagfwd_hsic.h
index 6769052..3cfb260 100644
--- a/drivers/char/diag/diagfwd_hsic.h
+++ b/drivers/char/diag/diagfwd_hsic.h
@@ -17,7 +17,7 @@
#define N_MDM_WRITE 1 /* Upgrade to 2 with ping pong buffer */
#define N_MDM_READ 1
-void __init diagfwd_hsic_init(void);
-void __exit diagfwd_hsic_exit(void);
+void diagfwd_hsic_init(void);
+void diagfwd_hsic_exit(void);
#endif