Commit eb054e3b authored by Peter Huewe's avatar Peter Huewe Committed by Geert Uytterhoeven

m68k: vme_scc - __init annotations

Trivial patch which adds the __init macro to the module_init
function and all of its helper functions of drivers/char/vme_scc.c
Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent f351d4bb
...@@ -136,7 +136,7 @@ static const struct tty_port_operations scc_port_ops = { ...@@ -136,7 +136,7 @@ static const struct tty_port_operations scc_port_ops = {
* vme_scc_init() and support functions * vme_scc_init() and support functions
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
static int scc_init_drivers(void) static int __init scc_init_drivers(void)
{ {
int error; int error;
...@@ -172,7 +172,7 @@ static int scc_init_drivers(void) ...@@ -172,7 +172,7 @@ static int scc_init_drivers(void)
/* ports[] array is indexed by line no (i.e. [0] for ttyS0, [1] for ttyS1). /* ports[] array is indexed by line no (i.e. [0] for ttyS0, [1] for ttyS1).
*/ */
static void scc_init_portstructs(void) static void __init scc_init_portstructs(void)
{ {
struct scc_port *port; struct scc_port *port;
int i; int i;
...@@ -195,7 +195,7 @@ static void scc_init_portstructs(void) ...@@ -195,7 +195,7 @@ static void scc_init_portstructs(void)
#ifdef CONFIG_MVME147_SCC #ifdef CONFIG_MVME147_SCC
static int mvme147_scc_init(void) static int __init mvme147_scc_init(void)
{ {
struct scc_port *port; struct scc_port *port;
int error; int error;
...@@ -298,7 +298,7 @@ static int mvme147_scc_init(void) ...@@ -298,7 +298,7 @@ static int mvme147_scc_init(void)
#ifdef CONFIG_MVME162_SCC #ifdef CONFIG_MVME162_SCC
static int mvme162_scc_init(void) static int __init mvme162_scc_init(void)
{ {
struct scc_port *port; struct scc_port *port;
int error; int error;
...@@ -404,7 +404,7 @@ static int mvme162_scc_init(void) ...@@ -404,7 +404,7 @@ static int mvme162_scc_init(void)
#ifdef CONFIG_BVME6000_SCC #ifdef CONFIG_BVME6000_SCC
static int bvme6000_scc_init(void) static int __init bvme6000_scc_init(void)
{ {
struct scc_port *port; struct scc_port *port;
int error; int error;
...@@ -503,7 +503,7 @@ static int bvme6000_scc_init(void) ...@@ -503,7 +503,7 @@ static int bvme6000_scc_init(void)
#endif #endif
static int vme_scc_init(void) static int __init vme_scc_init(void)
{ {
int res = -ENODEV; int res = -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment