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
5f1f7d94
Commit
5f1f7d94
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] rocket tty_driver add .owner field remove MOD_INC/DEC_USE_COUNT
parent
3c6c475e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
drivers/char/rocket.c
drivers/char/rocket.c
+1
-9
No files found.
drivers/char/rocket.c
View file @
5f1f7d94
...
@@ -874,9 +874,6 @@ static int rp_open(struct tty_struct *tty, struct file * filp)
...
@@ -874,9 +874,6 @@ static int rp_open(struct tty_struct *tty, struct file * filp)
}
}
if
(
info
->
count
++
==
0
)
{
if
(
info
->
count
++
==
0
)
{
#ifdef MODULE
MOD_INC_USE_COUNT
;
#endif
rp_num_ports_open
++
;
rp_num_ports_open
++
;
#ifdef ROCKET_DEBUG_OPEN
#ifdef ROCKET_DEBUG_OPEN
printk
(
"rocket mod++ = %d..."
,
rp_num_ports_open
);
printk
(
"rocket mod++ = %d..."
,
rp_num_ports_open
);
...
@@ -1071,9 +1068,6 @@ static void rp_close(struct tty_struct *tty, struct file * filp)
...
@@ -1071,9 +1068,6 @@ static void rp_close(struct tty_struct *tty, struct file * filp)
tty
->
closing
=
0
;
tty
->
closing
=
0
;
wake_up_interruptible
(
&
info
->
close_wait
);
wake_up_interruptible
(
&
info
->
close_wait
);
#ifdef MODULE
MOD_DEC_USE_COUNT
;
#endif
rp_num_ports_open
--
;
rp_num_ports_open
--
;
#ifdef ROCKET_DEBUG_OPEN
#ifdef ROCKET_DEBUG_OPEN
printk
(
"rocket mod-- = %d..."
,
rp_num_ports_open
);
printk
(
"rocket mod-- = %d..."
,
rp_num_ports_open
);
...
@@ -1504,9 +1498,6 @@ static void rp_hangup(struct tty_struct *tty)
...
@@ -1504,9 +1498,6 @@ static void rp_hangup(struct tty_struct *tty)
return
;
return
;
}
}
if
(
info
->
count
)
{
if
(
info
->
count
)
{
#ifdef MODULE
MOD_DEC_USE_COUNT
;
#endif
rp_num_ports_open
--
;
rp_num_ports_open
--
;
}
}
...
@@ -2012,6 +2003,7 @@ int __init rp_init(void)
...
@@ -2012,6 +2003,7 @@ int __init rp_init(void)
*/
*/
memset
(
&
rocket_driver
,
0
,
sizeof
(
struct
tty_driver
));
memset
(
&
rocket_driver
,
0
,
sizeof
(
struct
tty_driver
));
rocket_driver
.
magic
=
TTY_DRIVER_MAGIC
;
rocket_driver
.
magic
=
TTY_DRIVER_MAGIC
;
rocket_driver
.
owner
=
THIS_MODULE
;
#ifdef CONFIG_DEVFS_FS
#ifdef CONFIG_DEVFS_FS
rocket_driver
.
name
=
"tts/R"
;
rocket_driver
.
name
=
"tts/R"
;
#else
#else
...
...
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