[<prev] [next>] [day] [month] [year] [list]
Message-id: <827213526982173@wsc.cz>
Date: Sun, 1 Oct 2006 01:21:33 +0200 (CEST)
From: Jiri Slaby <jirislaby@...il.com>
To: Andrew Morton <akpm@...l.org>
Cc: <linux-kernel@...r.kernel.org>, <support@...a.com.tw>
Subject: [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 <jirislaby@...il.com>
---
commit d4f99406c592fb7ce2a65645d7c1f98ebe599238
tree 8ea0e12410606352dd337bd2c7a9a30cc70d0e58
parent e3d57eae41e172fbd6195a78532f3325b2441450
author Jiri Slaby <jirislaby@...il.com> Sat, 30 Sep 2006 00:53:58 +0200
committer Jiri Slaby <xslaby@...moi.localdomain> 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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists