From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: <linux-kernel@vger.kernel.org>, <support@moxa.com.tw>
Subject: [PATCH 2/4] Char: mxser_new, use __(dev)init macros
Date: Sun, 1 Oct 2006 00:33:59 +0200 (CEST) [thread overview]
Message-ID: <827213526982173@wsc.cz> (raw)
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>
---
commit d4f99406c592fb7ce2a65645d7c1f98ebe599238
tree 8ea0e12410606352dd337bd2c7a9a30cc70d0e58
parent e3d57eae41e172fbd6195a78532f3325b2441450
author Jiri Slaby <jirislaby@gmail.com> Sat, 30 Sep 2006 00:53:58 +0200
committer Jiri Slaby <xslaby@anemoi.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;
reply other threads:[~2006-09-30 22:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=827213526982173@wsc.cz \
--to=jirislaby@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=support@moxa.com.tw \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.