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
1bb80b50
Commit
1bb80b50
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] rio tty_driver add .owner field remove MOD_INC/DEC_USE_COUNT
parent
126582e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
33 deletions
+1
-33
drivers/char/rio/rio_linux.c
drivers/char/rio/rio_linux.c
+1
-25
drivers/char/rio/rio_linux.h
drivers/char/rio/rio_linux.h
+0
-3
drivers/char/rio/riotty.c
drivers/char/rio/riotty.c
+0
-5
No files found.
drivers/char/rio/rio_linux.c
View file @
1bb80b50
...
...
@@ -389,29 +389,6 @@ void rio_udelay (int usecs)
udelay
(
usecs
);
}
void
rio_inc_mod_count
(
void
)
{
#ifdef MODULE
func_enter
();
rio_dprintk
(
RIO_DEBUG_MOD_COUNT
,
"rio_inc_mod_count
\n
"
);
MOD_INC_USE_COUNT
;
func_exit
();
#endif
}
void
rio_dec_mod_count
(
void
)
{
#ifdef MODULE
func_enter
();
rio_dprintk
(
RIO_DEBUG_MOD_COUNT
,
"rio_dec_mod_count
\n
"
);
MOD_DEC_USE_COUNT
;
func_exit
();
#endif
}
static
int
rio_set_real_termios
(
void
*
ptr
)
{
int
rv
,
modem
;
...
...
@@ -660,7 +637,6 @@ static void rio_hungup (void *ptr)
PortP
=
(
struct
Port
*
)
ptr
;
PortP
->
gs
.
tty
=
NULL
;
rio_dec_mod_count
();
func_exit
();
}
...
...
@@ -686,7 +662,6 @@ static void rio_close (void *ptr)
}
PortP
->
gs
.
tty
=
NULL
;
rio_dec_mod_count
();
func_exit
();
}
...
...
@@ -908,6 +883,7 @@ static int rio_init_drivers(void)
memset
(
&
rio_driver
,
0
,
sizeof
(
rio_driver
));
rio_driver
.
magic
=
TTY_DRIVER_MAGIC
;
rio_driver
.
owner
=
THIS_MODULE
;
rio_driver
.
driver_name
=
"specialix_rio"
;
rio_driver
.
name
=
"ttySR"
;
rio_driver
.
major
=
RIO_NORMAL_MAJOR0
;
...
...
drivers/char/rio/rio_linux.h
View file @
1bb80b50
...
...
@@ -87,9 +87,6 @@ struct vpd_prom {
#endif
void
rio_dec_mod_count
(
void
);
void
rio_inc_mod_count
(
void
);
/* Allow us to debug "in the field" without requiring clients to
recompile.... */
#if 1
...
...
drivers/char/rio/riotty.c
View file @
1bb80b50
...
...
@@ -139,7 +139,6 @@ default_sg =
extern
struct
rio_info
*
p
;
extern
void
rio_inc_mod_count
(
void
);
int
...
...
@@ -205,8 +204,6 @@ riotopen(struct tty_struct * tty, struct file * filp)
tty
->
driver_data
=
PortP
;
PortP
->
gs
.
tty
=
tty
;
if
(
!
PortP
->
gs
.
count
)
rio_inc_mod_count
();
PortP
->
gs
.
count
++
;
rio_dprintk
(
RIO_DEBUG_TTY
,
"%d bytes in tx buffer
\n
"
,
...
...
@@ -215,8 +212,6 @@ riotopen(struct tty_struct * tty, struct file * filp)
retval
=
gs_init_port
(
&
PortP
->
gs
);
if
(
retval
)
{
PortP
->
gs
.
count
--
;
if
(
PortP
->
gs
.
count
)
rio_dec_mod_count
();
return
-
ENXIO
;
}
/*
...
...
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