Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
0c315582
Commit
0c315582
authored
Nov 24, 2002
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o mxser: add module_exit/module_init
This fixes the compilation problem in 2.5
parent
4d03b833
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
24 deletions
+5
-24
drivers/char/mxser.c
drivers/char/mxser.c
+5
-24
No files found.
drivers/char/mxser.c
View file @
0c315582
...
@@ -328,13 +328,7 @@ struct mxser_hwconf mxsercfg[MXSER_BOARDS];
...
@@ -328,13 +328,7 @@ struct mxser_hwconf mxsercfg[MXSER_BOARDS];
* static functions:
* static functions:
*/
*/
#ifdef MODULE
int
init_module
(
void
);
void
cleanup_module
(
void
);
#endif
static
void
mxser_getcfg
(
int
board
,
struct
mxser_hwconf
*
hwconf
);
static
void
mxser_getcfg
(
int
board
,
struct
mxser_hwconf
*
hwconf
);
int
mxser_init
(
void
);
static
int
mxser_get_ISA_conf
(
int
,
struct
mxser_hwconf
*
);
static
int
mxser_get_ISA_conf
(
int
,
struct
mxser_hwconf
*
);
static
int
mxser_get_PCI_conf
(
struct
pci_dev
*
,
int
,
struct
mxser_hwconf
*
);
static
int
mxser_get_PCI_conf
(
struct
pci_dev
*
,
int
,
struct
mxser_hwconf
*
);
static
void
mxser_do_softint
(
void
*
);
static
void
mxser_do_softint
(
void
*
);
...
@@ -373,21 +367,7 @@ static int mxser_set_modem_info(struct mxser_struct *, unsigned int, unsigned in
...
@@ -373,21 +367,7 @@ static int mxser_set_modem_info(struct mxser_struct *, unsigned int, unsigned in
* The MOXA C168/C104 serial driver boot-time initialization code!
* The MOXA C168/C104 serial driver boot-time initialization code!
*/
*/
static
void
__exit
mxser_module_exit
(
void
)
#ifdef MODULE
int
init_module
(
void
)
{
int
ret
;
if
(
verbose
)
printk
(
"Loading module mxser ...
\n
"
);
ret
=
mxser_init
();
if
(
verbose
)
printk
(
"Done.
\n
"
);
return
(
ret
);
}
void
cleanup_module
(
void
)
{
{
int
i
,
err
=
0
;
int
i
,
err
=
0
;
...
@@ -411,8 +391,6 @@ void cleanup_module(void)
...
@@ -411,8 +391,6 @@ void cleanup_module(void)
printk
(
"Done.
\n
"
);
printk
(
"Done.
\n
"
);
}
}
#endif
int
mxser_initbrd
(
int
board
,
struct
mxser_hwconf
*
hwconf
)
int
mxser_initbrd
(
int
board
,
struct
mxser_hwconf
*
hwconf
)
{
{
...
@@ -510,7 +488,7 @@ static int mxser_get_PCI_conf(struct pci_dev *pdev, int board_type, struct mxser
...
@@ -510,7 +488,7 @@ static int mxser_get_PCI_conf(struct pci_dev *pdev, int board_type, struct mxser
return
(
0
);
return
(
0
);
}
}
int
mxser
_init
(
void
)
static
int
__init
mxser_module
_init
(
void
)
{
{
int
i
,
m
,
retval
,
b
;
int
i
,
m
,
retval
,
b
;
int
n
,
index
;
int
n
,
index
;
...
@@ -2493,3 +2471,6 @@ static void mxser_normal_mode(int port)
...
@@ -2493,3 +2471,6 @@ static void mxser_normal_mode(int port)
}
}
outb
(
0x00
,
port
+
4
);
outb
(
0x00
,
port
+
4
);
}
}
module_init
(
mxser_module_init
);
module_exit
(
mxser_module_exit
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment