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
Kirill Smelkov
linux
Commits
f548411b
Commit
f548411b
authored
Dec 07, 2002
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o epca: use module_{init,exit}, {cleanup,init}_module now are macros
parent
19c109a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
drivers/char/epca.c
drivers/char/epca.c
+7
-12
No files found.
drivers/char/epca.c
View file @
f548411b
...
...
@@ -141,12 +141,6 @@ static struct timer_list epca_timer;
configured.
----------------------------------------------------------------------- */
#ifdef MODULE
int
init_module
(
void
);
void
cleanup_module
(
void
);
#endif
/* MODULE */
static
inline
void
memwinon
(
struct
board_info
*
b
,
unsigned
int
win
);
static
inline
void
memwinoff
(
struct
board_info
*
b
,
unsigned
int
win
);
static
inline
void
globalwinon
(
struct
channel
*
ch
);
...
...
@@ -1534,8 +1528,7 @@ static int pc_open(struct tty_struct *tty, struct file * filp)
}
/* End pc_open */
#ifdef MODULE
/* -------------------- Begin init_module ---------------------- */
int
__init
init_module
()
static
int
__init
epca_module_init
(
void
)
{
/* Begin init_module */
unsigned
long
flags
;
...
...
@@ -1548,8 +1541,9 @@ int __init init_module()
restore_flags
(
flags
);
return
(
0
);
}
/* End init_module */
}
module_init
(
epca_module_init
);
#endif
#ifdef ENABLE_PCI
...
...
@@ -1559,8 +1553,8 @@ static struct pci_driver epca_driver;
#ifdef MODULE
/* -------------------- Begin cleanup_module ---------------------- */
void
cleanup_module
(
)
{
/* Begin cleanup_module */
static
void
__exit
epca_module_exit
(
void
)
{
int
count
,
crd
;
struct
board_info
*
bd
;
...
...
@@ -1613,7 +1607,8 @@ void cleanup_module()
restore_flags
(
flags
);
}
/* End cleanup_module */
}
module_exit
(
epca_module_exit
);
#endif
/* MODULE */
/* ------------------ Begin pc_init ---------------------- */
...
...
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