diff options
Diffstat (limited to 'drivers/char/vme_scc.c')
-rw-r--r-- | drivers/char/vme_scc.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/char/vme_scc.c b/drivers/char/vme_scc.c index 994e1a58b987..12de1202d22c 100644 --- a/drivers/char/vme_scc.c +++ b/drivers/char/vme_scc.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <linux/fcntl.h> | 27 | #include <linux/fcntl.h> |
28 | #include <linux/major.h> | 28 | #include <linux/major.h> |
29 | #include <linux/delay.h> | 29 | #include <linux/delay.h> |
30 | #include <linux/slab.h> | ||
31 | #include <linux/miscdevice.h> | 30 | #include <linux/miscdevice.h> |
32 | #include <linux/console.h> | 31 | #include <linux/console.h> |
33 | #include <linux/init.h> | 32 | #include <linux/init.h> |
@@ -136,7 +135,7 @@ static const struct tty_port_operations scc_port_ops = { | |||
136 | * vme_scc_init() and support functions | 135 | * vme_scc_init() and support functions |
137 | *---------------------------------------------------------------------------*/ | 136 | *---------------------------------------------------------------------------*/ |
138 | 137 | ||
139 | static int scc_init_drivers(void) | 138 | static int __init scc_init_drivers(void) |
140 | { | 139 | { |
141 | int error; | 140 | int error; |
142 | 141 | ||
@@ -172,7 +171,7 @@ static int scc_init_drivers(void) | |||
172 | /* ports[] array is indexed by line no (i.e. [0] for ttyS0, [1] for ttyS1). | 171 | /* ports[] array is indexed by line no (i.e. [0] for ttyS0, [1] for ttyS1). |
173 | */ | 172 | */ |
174 | 173 | ||
175 | static void scc_init_portstructs(void) | 174 | static void __init scc_init_portstructs(void) |
176 | { | 175 | { |
177 | struct scc_port *port; | 176 | struct scc_port *port; |
178 | int i; | 177 | int i; |
@@ -195,7 +194,7 @@ static void scc_init_portstructs(void) | |||
195 | 194 | ||
196 | 195 | ||
197 | #ifdef CONFIG_MVME147_SCC | 196 | #ifdef CONFIG_MVME147_SCC |
198 | static int mvme147_scc_init(void) | 197 | static int __init mvme147_scc_init(void) |
199 | { | 198 | { |
200 | struct scc_port *port; | 199 | struct scc_port *port; |
201 | int error; | 200 | int error; |
@@ -298,7 +297,7 @@ fail: | |||
298 | 297 | ||
299 | 298 | ||
300 | #ifdef CONFIG_MVME162_SCC | 299 | #ifdef CONFIG_MVME162_SCC |
301 | static int mvme162_scc_init(void) | 300 | static int __init mvme162_scc_init(void) |
302 | { | 301 | { |
303 | struct scc_port *port; | 302 | struct scc_port *port; |
304 | int error; | 303 | int error; |
@@ -404,7 +403,7 @@ fail: | |||
404 | 403 | ||
405 | 404 | ||
406 | #ifdef CONFIG_BVME6000_SCC | 405 | #ifdef CONFIG_BVME6000_SCC |
407 | static int bvme6000_scc_init(void) | 406 | static int __init bvme6000_scc_init(void) |
408 | { | 407 | { |
409 | struct scc_port *port; | 408 | struct scc_port *port; |
410 | int error; | 409 | int error; |
@@ -503,7 +502,7 @@ fail_free_b_rx: | |||
503 | #endif | 502 | #endif |
504 | 503 | ||
505 | 504 | ||
506 | static int vme_scc_init(void) | 505 | static int __init vme_scc_init(void) |
507 | { | 506 | { |
508 | int res = -ENODEV; | 507 | int res = -ENODEV; |
509 | 508 | ||