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
9d76559d
Commit
9d76559d
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] cyclades tty_driver add .owner field remove MOD_INC/DEC_USE_COUNT
parent
acf9b7d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
drivers/char/cyclades.c
drivers/char/cyclades.c
+1
-7
No files found.
drivers/char/cyclades.c
View file @
9d76559d
...
...
@@ -2579,15 +2579,12 @@ cy_open(struct tty_struct *tty, struct file * filp)
int
retval
,
line
;
unsigned
long
page
;
MOD_INC_USE_COUNT
;
line
=
tty
->
index
;
if
((
line
<
0
)
||
(
NR_PORTS
<=
line
)){
MOD_DEC_USE_COUNT
;
return
-
ENODEV
;
}
info
=
&
cy_port
[
line
];
if
(
info
->
line
<
0
){
MOD_DEC_USE_COUNT
;
return
-
ENODEV
;
}
...
...
@@ -2607,7 +2604,6 @@ cy_open(struct tty_struct *tty, struct file * filp)
}
else
{
printk
(
"cyc:Cyclades-Z firmware not yet loaded
\n
"
);
}
MOD_DEC_USE_COUNT
;
return
-
ENODEV
;
}
#ifdef CONFIG_CYZ_INTR
...
...
@@ -2803,7 +2799,6 @@ cy_close(struct tty_struct *tty, struct file *filp)
CY_LOCK
(
info
,
flags
);
/* If the TTY is being hung up, nothing to do */
if
(
tty_hung_up_p
(
filp
))
{
MOD_DEC_USE_COUNT
;
CY_UNLOCK
(
info
,
flags
);
return
;
}
...
...
@@ -2834,7 +2829,6 @@ cy_close(struct tty_struct *tty, struct file *filp)
info
->
count
=
0
;
}
if
(
info
->
count
)
{
MOD_DEC_USE_COUNT
;
CY_UNLOCK
(
info
,
flags
);
return
;
}
...
...
@@ -2931,7 +2925,6 @@ cy_close(struct tty_struct *tty, struct file *filp)
printk
(
" cyc:cy_close done
\n
"
);
#endif
MOD_DEC_USE_COUNT
;
CY_UNLOCK
(
info
,
flags
);
return
;
}
/* cy_close */
...
...
@@ -5494,6 +5487,7 @@ cy_init(void)
memset
(
&
cy_serial_driver
,
0
,
sizeof
(
struct
tty_driver
));
cy_serial_driver
.
magic
=
TTY_DRIVER_MAGIC
;
cy_serial_driver
.
owner
=
THIS_MODULE
;
cy_serial_driver
.
driver_name
=
"cyclades"
;
cy_serial_driver
.
name
=
"ttyC"
;
cy_serial_driver
.
major
=
CYCLADES_MAJOR
;
...
...
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