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
618c9e0c
Commit
618c9e0c
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] vme_scc tty_driver add .owner field remove MOD_INC/DEC_USE_COUNT
parent
60bac5c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
drivers/char/vme_scc.c
drivers/char/vme_scc.c
+1
-6
No files found.
drivers/char/vme_scc.c
View file @
618c9e0c
...
...
@@ -129,6 +129,7 @@ static int scc_init_drivers(void)
memset
(
&
scc_driver
,
0
,
sizeof
(
scc_driver
));
scc_driver
.
magic
=
TTY_DRIVER_MAGIC
;
scc_driver
.
owner
=
THIS_MODULE
;
scc_driver
.
driver_name
=
"scc"
;
#ifdef CONFIG_DEVFS_FS
scc_driver
.
name
=
"tts/"
;
...
...
@@ -795,7 +796,6 @@ static void scc_hungup(void *ptr)
{
scc_disable_tx_interrupts
(
ptr
);
scc_disable_rx_interrupts
(
ptr
);
MOD_DEC_USE_COUNT
;
}
...
...
@@ -803,7 +803,6 @@ static void scc_close(void *ptr)
{
scc_disable_tx_interrupts
(
ptr
);
scc_disable_rx_interrupts
(
ptr
);
MOD_DEC_USE_COUNT
;
}
...
...
@@ -938,13 +937,9 @@ static int scc_open (struct tty_struct * tty, struct file * filp)
return
retval
;
}
port
->
gs
.
flags
|=
GS_ACTIVE
;
if
(
port
->
gs
.
count
==
1
)
{
MOD_INC_USE_COUNT
;
}
retval
=
gs_block_til_ready
(
port
,
filp
);
if
(
retval
)
{
MOD_DEC_USE_COUNT
;
port
->
gs
.
count
--
;
return
retval
;
}
...
...
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