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
c9e3a3f9
Commit
c9e3a3f9
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] ser_a2232 tty_driver add .owner field remove MOD_INC/DEC_USE_COUNT
parent
422f1c07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
drivers/char/ser_a2232.c
drivers/char/ser_a2232.c
+1
-6
No files found.
drivers/char/ser_a2232.c
View file @
c9e3a3f9
...
@@ -272,7 +272,6 @@ static void a2232_shutdown_port(void *ptr)
...
@@ -272,7 +272,6 @@ static void a2232_shutdown_port(void *ptr)
not in "a2232_close()". See the comment in "sx.c", too.
not in "a2232_close()". See the comment in "sx.c", too.
If you run into problems, compile this driver into the
If you run into problems, compile this driver into the
kernel instead of compiling it as a module. */
kernel instead of compiling it as a module. */
MOD_DEC_USE_COUNT
;
}
}
static
int
a2232_set_real_termios
(
void
*
ptr
)
static
int
a2232_set_real_termios
(
void
*
ptr
)
...
@@ -414,7 +413,6 @@ static void a2232_close(void *ptr)
...
@@ -414,7 +413,6 @@ static void a2232_close(void *ptr)
a2232_disable_tx_interrupts
(
ptr
);
a2232_disable_tx_interrupts
(
ptr
);
a2232_disable_rx_interrupts
(
ptr
);
a2232_disable_rx_interrupts
(
ptr
);
/* see the comment in a2232_shutdown_port above. */
/* see the comment in a2232_shutdown_port above. */
/* MOD_DEC_USE_COUNT; */
}
}
static
void
a2232_hungup
(
void
*
ptr
)
static
void
a2232_hungup
(
void
*
ptr
)
...
@@ -468,13 +466,9 @@ static int a2232_open(struct tty_struct * tty, struct file * filp)
...
@@ -468,13 +466,9 @@ static int a2232_open(struct tty_struct * tty, struct file * filp)
return
retval
;
return
retval
;
}
}
port
->
gs
.
flags
|=
GS_ACTIVE
;
port
->
gs
.
flags
|=
GS_ACTIVE
;
if
(
port
->
gs
.
count
==
1
)
{
MOD_INC_USE_COUNT
;
}
retval
=
gs_block_til_ready
(
port
,
filp
);
retval
=
gs_block_til_ready
(
port
,
filp
);
if
(
retval
)
{
if
(
retval
)
{
MOD_DEC_USE_COUNT
;
port
->
gs
.
count
--
;
port
->
gs
.
count
--
;
return
retval
;
return
retval
;
}
}
...
@@ -711,6 +705,7 @@ static int a2232_init_drivers(void)
...
@@ -711,6 +705,7 @@ static int a2232_init_drivers(void)
memset
(
&
a2232_driver
,
0
,
sizeof
(
a2232_driver
));
memset
(
&
a2232_driver
,
0
,
sizeof
(
a2232_driver
));
a2232_driver
.
magic
=
TTY_DRIVER_MAGIC
;
a2232_driver
.
magic
=
TTY_DRIVER_MAGIC
;
a2232_driver
.
owner
=
THIS_MODULE
;
a2232_driver
.
driver_name
=
"commodore_a2232"
;
a2232_driver
.
driver_name
=
"commodore_a2232"
;
a2232_driver
.
name
=
"ttyY"
;
a2232_driver
.
name
=
"ttyY"
;
a2232_driver
.
major
=
A2232_NORMAL_MAJOR
;
a2232_driver
.
major
=
A2232_NORMAL_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