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
5fa62d1f
Commit
5fa62d1f
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] macintosh/macserial tty_driver add .owner field remove MOD_INC/DEC_USE_COUNT
parent
d1a3b250
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
drivers/macintosh/macserial.c
drivers/macintosh/macserial.c
+1
-6
No files found.
drivers/macintosh/macserial.c
View file @
5fa62d1f
...
...
@@ -1932,7 +1932,6 @@ static void rs_close(struct tty_struct *tty, struct file * filp)
spin_lock_irqsave
(
&
info
->
lock
,
flags
);
if
(
tty_hung_up_p
(
filp
))
{
MOD_DEC_USE_COUNT
;
spin_unlock_irqrestore
(
&
info
->
lock
,
flags
);
return
;
}
...
...
@@ -1956,7 +1955,6 @@ static void rs_close(struct tty_struct *tty, struct file * filp)
info
->
count
=
0
;
}
if
(
info
->
count
)
{
MOD_DEC_USE_COUNT
;
spin_unlock_irqrestore
(
&
info
->
lock
,
flags
);
return
;
}
...
...
@@ -2026,7 +2024,6 @@ static void rs_close(struct tty_struct *tty, struct file * filp)
info
->
flags
&=
~
(
ZILOG_NORMAL_ACTIVE
|
ZILOG_CALLOUT_ACTIVE
|
ZILOG_CLOSING
);
wake_up_interruptible
(
&
info
->
close_wait
);
MOD_DEC_USE_COUNT
;
}
/*
...
...
@@ -2233,17 +2230,14 @@ static int rs_open(struct tty_struct *tty, struct file * filp)
int
retval
,
line
;
unsigned
long
page
;
MOD_INC_USE_COUNT
;
line
=
tty
->
index
;
if
((
line
<
0
)
||
(
line
>=
zs_channels_found
))
{
MOD_DEC_USE_COUNT
;
return
-
ENODEV
;
}
info
=
zs_soft
+
line
;
#ifdef CONFIG_KGDB
if
(
info
->
kgdb_channel
)
{
MOD_DEC_USE_COUNT
;
return
-
ENODEV
;
}
#endif
...
...
@@ -2610,6 +2604,7 @@ int macserial_init(void)
memset
(
&
serial_driver
,
0
,
sizeof
(
struct
tty_driver
));
serial_driver
.
magic
=
TTY_DRIVER_MAGIC
;
serial_driver
.
owner
=
THIS_MODULE
;
serial_driver
.
driver_name
=
"macserial"
;
#ifdef CONFIG_DEVFS_FS
serial_driver
.
name
=
"tts/"
;
...
...
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