summaryrefslogtreecommitdiff
path: root/drivers/char/mxser_new.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2006-12-08 10:38:15 (GMT)
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 16:28:53 (GMT)
commit943f295903e152f940ba4260d1e790a05d2f64a3 (patch)
tree5a5815af3c08ebbb4ebf530f9b2745981af44e2e /drivers/char/mxser_new.c
parent55b307da3e00b2281788860eefb42976a86d7752 (diff)
downloadlinux-fsl-qoriq-943f295903e152f940ba4260d1e790a05d2f64a3.tar.xz
[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 7e53c73..863c1b2 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)
}
}
-static int mxser_initbrd(struct mxser_board *brd)
+static int __devinit mxser_initbrd(struct mxser_board *brd)
{
struct mxser_port *info;
unsigned int i;
@@ -617,7 +617,7 @@ static int mxser_initbrd(struct mxser_board *brd)
return 0;
}
-static int mxser_get_PCI_conf(int board_type, struct mxser_board *brd,
+static int __init mxser_get_PCI_conf(int board_type, struct mxser_board *brd,
struct pci_dev *pdev)
{
unsigned int i, j;
@@ -678,7 +678,7 @@ static int mxser_get_PCI_conf(int board_type, struct mxser_board *brd,
return 0;
}
-static int mxser_init(void)
+static int __init mxser_init(void)
{
struct pci_dev *pdev = NULL;
struct mxser_board *brd;
@@ -2925,7 +2925,7 @@ static int mxser_read_register(int, unsigned short *);
static int mxser_program_mode(int);
static void mxser_normal_mode(int);
-static int mxser_get_ISA_conf(int cap, struct mxser_board *brd)
+static int __init mxser_get_ISA_conf(int cap, struct mxser_board *brd)
{
int id, i, bits;
unsigned short regs[16], irq;