diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2007-02-10 04:45:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:28 -0500 |
commit | c76b09301eeb844036f17d008e15ff6532d8f33a (patch) | |
tree | 956dee8fce73105cbba4153e7bfe7bdb010ac262 /drivers | |
parent | d8adb9cef7e406a9a82881695097c702bc98422f (diff) |
[PATCH] Char: mxser_new, mark init functions
Mark some funcions with __init and __devinit.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/mxser_new.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c index cbbdb7111fb1..d385e791068b 100644 --- a/drivers/char/mxser_new.c +++ b/drivers/char/mxser_new.c | |||
@@ -316,7 +316,7 @@ static int mxser_set_baud_method[MXSER_PORTS + 1]; | |||
316 | static spinlock_t gm_lock; | 316 | static spinlock_t gm_lock; |
317 | 317 | ||
318 | #ifdef CONFIG_PCI | 318 | #ifdef CONFIG_PCI |
319 | static int CheckIsMoxaMust(int io) | 319 | static int __devinit CheckIsMoxaMust(int io) |
320 | { | 320 | { |
321 | u8 oldmcr, hwid; | 321 | u8 oldmcr, hwid; |
322 | int i; | 322 | int i; |
@@ -1373,7 +1373,7 @@ static int mxser_tiocmset(struct tty_struct *tty, struct file *file, | |||
1373 | return 0; | 1373 | return 0; |
1374 | } | 1374 | } |
1375 | 1375 | ||
1376 | static int mxser_program_mode(int port) | 1376 | static int __init mxser_program_mode(int port) |
1377 | { | 1377 | { |
1378 | int id, i, j, n; | 1378 | int id, i, j, n; |
1379 | 1379 | ||
@@ -1410,7 +1410,7 @@ static int mxser_program_mode(int port) | |||
1410 | return id; | 1410 | return id; |
1411 | } | 1411 | } |
1412 | 1412 | ||
1413 | static void mxser_normal_mode(int port) | 1413 | static void __init mxser_normal_mode(int port) |
1414 | { | 1414 | { |
1415 | int i, n; | 1415 | int i, n; |
1416 | 1416 | ||
@@ -1443,7 +1443,7 @@ static void mxser_normal_mode(int port) | |||
1443 | #define EN0_PORT 0x010 /* Rcv missed frame error counter RD */ | 1443 | #define EN0_PORT 0x010 /* Rcv missed frame error counter RD */ |
1444 | #define ENC_PAGE0 0x000 /* Select page 0 of chip registers */ | 1444 | #define ENC_PAGE0 0x000 /* Select page 0 of chip registers */ |
1445 | #define ENC_PAGE3 0x0C0 /* Select page 3 of chip registers */ | 1445 | #define ENC_PAGE3 0x0C0 /* Select page 3 of chip registers */ |
1446 | static int mxser_read_register(int port, unsigned short *regs) | 1446 | static int __init mxser_read_register(int port, unsigned short *regs) |
1447 | { | 1447 | { |
1448 | int i, k, value, id; | 1448 | int i, k, value, id; |
1449 | unsigned int j; | 1449 | unsigned int j; |