Char: mxser_new, use __(dev)init macros
Subsystems (2)
PATCH 2/4 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 <[email protected]>
---
commit d4f99406c592fb7ce2a65645d7c1f98ebe599238
tree 8ea0e12410606352dd337bd2c7a9a30cc70d0e58
parent e3d57eae41e172fbd6195a78532f3325b2441450
author Jiri Slaby <[email protected]> Sat, 30 Sep 2006 00:53:58 +0200 committer Jiri Slaby <[email protected]> Sat, 30 Sep 2006 00:53:58 +0200
drivers/char/mxser_new.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/char/mxser_new.c +4 -4
@@ -559,7 +559,7 @@ static void process_txrx_fifo(struct mxs } } -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_boreturn 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_return 0 ; } -static int mxser_init (void ) +static int __init mxser_init (void ) {struct pci_dev *pdev =NULL ;struct mxser_board *brd;
@@ -2918,7 +2918,7 @@ static int mxser_read_register(int, unsistatic 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;