[PATCH 2/4] Char: mxser_new, use __(dev)init macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c
index 1a6a3aa..dfef9ce 100644
--- a/drivers/char/mxser_new.c
+++ b/drivers/char/mxser_new.c
@@ -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_bo
 	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_
 	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, unsi
 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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux