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
129738d3
Commit
129738d3
authored
May 07, 2003
by
Hanna V. Linder
Committed by
Greg Kroah-Hartman
May 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] specialix tty_driver add .owner field remove MOD_INC/DEC_USE_COUNT
parent
5a7ee7c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
drivers/char/specialix.c
drivers/char/specialix.c
+2
-6
No files found.
drivers/char/specialix.c
View file @
129738d3
...
...
@@ -833,9 +833,7 @@ static inline void sx_check_modem(struct specialix_board * bp)
#ifdef SPECIALIX_DEBUG
printk
(
"Sending HUP.
\n
"
);
#endif
MOD_INC_USE_COUNT
;
if
(
schedule_task
(
&
port
->
tqueue_hangup
)
==
0
)
MOD_DEC_USE_COUNT
;
schedule_task
(
&
port
->
tqueue_hangup
);
}
else
{
#ifdef SPECIALIX_DEBUG
printk
(
"Don't need to send HUP.
\n
"
);
...
...
@@ -980,7 +978,6 @@ static inline int sx_setup_board(struct specialix_board * bp)
turn_ints_on
(
bp
);
bp
->
flags
|=
SX_BOARD_ACTIVE
;
MOD_INC_USE_COUNT
;
return
0
;
}
...
...
@@ -1000,7 +997,6 @@ static inline void sx_shutdown_board(struct specialix_board *bp)
turn_ints_off
(
bp
);
MOD_DEC_USE_COUNT
;
}
...
...
@@ -2150,7 +2146,6 @@ static void do_sx_hangup(void *private_)
tty
=
port
->
tty
;
if
(
tty
)
tty_hangup
(
tty
);
/* FIXME: module removal race here */
MOD_DEC_USE_COUNT
;
}
...
...
@@ -2233,6 +2228,7 @@ static int sx_init_drivers(void)
init_bh
(
SPECIALIX_BH
,
do_specialix_bh
);
memset
(
&
specialix_driver
,
0
,
sizeof
(
specialix_driver
));
specialix_driver
.
magic
=
TTY_DRIVER_MAGIC
;
specialix_driver
.
owner
=
THIS_MODULE
;
specialix_driver
.
name
=
"ttyW"
;
specialix_driver
.
major
=
SPECIALIX_NORMAL_MAJOR
;
specialix_driver
.
num
=
SX_NBOARD
*
SX_NPORT
;
...
...
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