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
fda3b647
Commit
fda3b647
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] riscom8 tty_driver add .owner field remove MOD_INC/DEC_USE_COUNT
parent
1bb80b50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
drivers/char/riscom8.c
drivers/char/riscom8.c
+2
-6
No files found.
drivers/char/riscom8.c
View file @
fda3b647
...
...
@@ -552,9 +552,7 @@ static inline void rc_check_modem(struct riscom_board const * bp)
wake_up_interruptible
(
&
port
->
open_wait
);
else
if
(
!
((
port
->
flags
&
ASYNC_CALLOUT_ACTIVE
)
&&
(
port
->
flags
&
ASYNC_CALLOUT_NOHUP
)))
{
MOD_INC_USE_COUNT
;
if
(
schedule_task
(
&
port
->
tqueue_hangup
)
==
0
)
MOD_DEC_USE_COUNT
;
schedule_task
(
&
port
->
tqueue_hangup
);
}
}
...
...
@@ -676,7 +674,6 @@ static inline int rc_setup_board(struct riscom_board * bp)
IRQ_to_board
[
bp
->
irq
]
=
bp
;
bp
->
flags
|=
RC_BOARD_ACTIVE
;
MOD_INC_USE_COUNT
;
return
0
;
}
...
...
@@ -694,7 +691,6 @@ static inline void rc_shutdown_board(struct riscom_board *bp)
bp
->
DTR
=
~
0
;
rc_out
(
bp
,
RC_DTR
,
bp
->
DTR
);
/* Drop DTR on all ports */
MOD_DEC_USE_COUNT
;
}
/*
...
...
@@ -1678,7 +1674,6 @@ static void do_rc_hangup(void *private_)
tty
=
port
->
tty
;
if
(
tty
)
tty_hangup
(
tty
);
/* FIXME: module removal race still here */
MOD_DEC_USE_COUNT
;
}
static
void
rc_hangup
(
struct
tty_struct
*
tty
)
...
...
@@ -1757,6 +1752,7 @@ static inline int rc_init_drivers(void)
memset
(
IRQ_to_board
,
0
,
sizeof
(
IRQ_to_board
));
memset
(
&
riscom_driver
,
0
,
sizeof
(
riscom_driver
));
riscom_driver
.
magic
=
TTY_DRIVER_MAGIC
;
riscom_driver
.
owner
=
THIS_MODULE
;
riscom_driver
.
name
=
"ttyL"
;
riscom_driver
.
major
=
RISCOM8_NORMAL_MAJOR
;
riscom_driver
.
num
=
RC_NBOARD
*
RC_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