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
3f3d6bac
Commit
3f3d6bac
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] ip2main tty_driver add .owner field remove MOD_INC/DEC_USE_COUNT
parent
51442d5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
drivers/char/ip2main.c
drivers/char/ip2main.c
+1
-4
No files found.
drivers/char/ip2main.c
View file @
3f3d6bac
...
...
@@ -793,6 +793,7 @@ ip2_loadmain(int *iop, int *irqp, unsigned char *firmware, int firmsize)
/* Initialise the relevant fields. */
ip2_tty_driver
.
magic
=
TTY_DRIVER_MAGIC
;
ip2_tty_driver
.
owner
=
THIS_MODULE
;
ip2_tty_driver
.
name
=
pcTty
;
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,1,0)
ip2_tty_driver
.
driver_name
=
pcDriver_name
;
...
...
@@ -1577,7 +1578,6 @@ ip2_open( PTTY tty, struct file *pFile )
/* Setup pointer links in device and tty structures */
pCh
->
pTTY
=
tty
;
tty
->
driver_data
=
pCh
;
MOD_INC_USE_COUNT
;
#ifdef IP2DEBUG_OPEN
printk
(
KERN_DEBUG
\
...
...
@@ -1777,14 +1777,12 @@ ip2_close( PTTY tty, struct file *pFile )
#endif
if
(
tty_hung_up_p
(
pFile
)
)
{
MOD_DEC_USE_COUNT
;
ip2trace
(
CHANN
,
ITRC_CLOSE
,
2
,
1
,
2
);
return
;
}
if
(
tty
->
count
>
1
)
{
/* not the last close */
MOD_DEC_USE_COUNT
;
ip2trace
(
CHANN
,
ITRC_CLOSE
,
2
,
1
,
3
);
...
...
@@ -1852,7 +1850,6 @@ ip2_close( PTTY tty, struct file *pFile )
DBG_CNT
(
"ip2_close: after wakeups--"
);
#endif
MOD_DEC_USE_COUNT
;
ip2trace
(
CHANN
,
ITRC_CLOSE
,
ITRC_RETURN
,
1
,
1
);
...
...
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