aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/mxser_new.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2006-12-08 05:38:15 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:53 -0500
commit943f295903e152f940ba4260d1e790a05d2f64a3 (patch)
tree5a5815af3c08ebbb4ebf530f9b2745981af44e2e /drivers/char/mxser_new.c
parent55b307da3e00b2281788860eefb42976a86d7752 (diff)
[PATCH] char: mxser_new, use __(dev)init macros
mxser_new, use __(dev)init macros Let kernel know what can be freed after init of the driver. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/mxser_new.c')
-rw-r--r--drivers/char/mxser_new.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c
index 7e53c7397832..863c1b27849b 100644
--- a/drivers/char/mxser_new.c
+++ b/drivers/char/mxser_new.c
@@ -559,7 +559,7 @@ static void process_txrx_fifo(struct mxser_port *info)
559 } 559 }
560} 560}
561 561
562static int mxser_initbrd(struct mxser_board *brd) 562static int __devinit mxser_initbrd(struct mxser_board *brd)
563{ 563{
564 struct mxser_port *info; 564 struct mxser_port *info;
565 unsigned int i; 565 unsigned int i;
@@ -617,7 +617,7 @@ static int mxser_initbrd(struct mxser_board *brd)
617 return 0; 617 return 0;
618} 618}
619 619
620static int mxser_get_PCI_conf(int board_type, struct mxser_board *brd, 620static int __init mxser_get_PCI_conf(int board_type, struct mxser_board *brd,
621 struct pci_dev *pdev) 621 struct pci_dev *pdev)
622{ 622{
623 unsigned int i, j; 623 unsigned int i, j;
@@ -678,7 +678,7 @@ static int mxser_get_PCI_conf(int board_type, struct mxser_board *brd,
678 return 0; 678 return 0;
679} 679}
680 680
681static int mxser_init(void) 681static int __init mxser_init(void)
682{ 682{
683 struct pci_dev *pdev = NULL; 683 struct pci_dev *pdev = NULL;
684 struct mxser_board *brd; 684 struct mxser_board *brd;
@@ -2925,7 +2925,7 @@ static int mxser_read_register(int, unsigned short *);
2925static int mxser_program_mode(int); 2925static int mxser_program_mode(int);
2926static void mxser_normal_mode(int); 2926static void mxser_normal_mode(int);
2927 2927
2928static int mxser_get_ISA_conf(int cap, struct mxser_board *brd) 2928static int __init mxser_get_ISA_conf(int cap, struct mxser_board *brd)
2929{ 2929{
2930 int id, i, bits; 2930 int id, i, bits;
2931 unsigned short regs[16], irq; 2931 unsigned short regs[16], irq;