Skip to content

Commit

Permalink
[PATCH] char: mxser_new, use __(dev)init macros
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Dec 8, 2006
1 parent 55b307d commit 943f295
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/char/mxser_new.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 943f295

Please sign in to comment.