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
05922507
Commit
05922507
authored
May 26, 2003
by
Alexander Viro
Committed by
Linus Torvalds
May 26, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] callout removal: tx3912
callout removal: tx3912
parent
3ab0fe24
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
21 deletions
+2
-21
drivers/char/serial_tx3912.c
drivers/char/serial_tx3912.c
+2
-21
No files found.
drivers/char/serial_tx3912.c
View file @
05922507
...
@@ -59,7 +59,7 @@ static struct real_driver rs_real_driver = {
...
@@ -59,7 +59,7 @@ static struct real_driver rs_real_driver = {
/*
/*
* Structures and such for TTY sessions and usage counts
* Structures and such for TTY sessions and usage counts
*/
*/
static
struct
tty_driver
rs_driver
,
rs_callout_driver
;
static
struct
tty_driver
rs_driver
;
static
struct
tty_struct
*
rs_table
[
TX3912_UART_NPORTS
]
=
{
NULL
,
};
static
struct
tty_struct
*
rs_table
[
TX3912_UART_NPORTS
]
=
{
NULL
,
};
static
struct
termios
**
rs_termios
;
static
struct
termios
**
rs_termios
;
static
struct
termios
**
rs_termios_locked
;
static
struct
termios
**
rs_termios_locked
;
...
@@ -594,15 +594,10 @@ static int rs_open (struct tty_struct * tty, struct file * filp)
...
@@ -594,15 +594,10 @@ static int rs_open (struct tty_struct * tty, struct file * filp)
/* tty->low_latency = 1; */
/* tty->low_latency = 1; */
if
((
port
->
gs
.
count
==
1
)
&&
(
port
->
gs
.
flags
&
ASYNC_SPLIT_TERMIOS
))
{
if
((
port
->
gs
.
count
==
1
)
&&
(
port
->
gs
.
flags
&
ASYNC_SPLIT_TERMIOS
))
{
if
(
tty
->
driver
->
subtype
==
SERIAL_TYPE_NORMAL
)
*
tty
->
termios
=
port
->
gs
.
normal_termios
;
*
tty
->
termios
=
port
->
gs
.
normal_termios
;
else
*
tty
->
termios
=
port
->
gs
.
callout_termios
;
rs_set_real_termios
(
port
);
rs_set_real_termios
(
port
);
}
}
port
->
gs
.
session
=
current
->
session
;
port
->
gs
.
pgrp
=
current
->
pgrp
;
func_exit
();
func_exit
();
/* Jim */
/* Jim */
...
@@ -773,7 +768,6 @@ static int rs_init_portstructs(void)
...
@@ -773,7 +768,6 @@ static int rs_init_portstructs(void)
port
=
rs_ports
;
port
=
rs_ports
;
for
(
i
=
0
;
i
<
TX3912_UART_NPORTS
;
i
++
)
{
for
(
i
=
0
;
i
<
TX3912_UART_NPORTS
;
i
++
)
{
rs_dprintk
(
TX3912_UART_DEBUG_INIT
,
"initing port %d
\n
"
,
i
);
rs_dprintk
(
TX3912_UART_DEBUG_INIT
,
"initing port %d
\n
"
,
i
);
port
->
gs
.
callout_termios
=
tty_std_termios
;
port
->
gs
.
normal_termios
=
tty_std_termios
;
port
->
gs
.
normal_termios
=
tty_std_termios
;
port
->
gs
.
magic
=
SERIAL_MAGIC
;
port
->
gs
.
magic
=
SERIAL_MAGIC
;
port
->
gs
.
close_delay
=
HZ
/
2
;
port
->
gs
.
close_delay
=
HZ
/
2
;
...
@@ -837,24 +831,11 @@ static int rs_init_drivers(void)
...
@@ -837,24 +831,11 @@ static int rs_init_drivers(void)
rs_driver
.
start
=
gs_start
;
rs_driver
.
start
=
gs_start
;
rs_driver
.
hangup
=
gs_hangup
;
rs_driver
.
hangup
=
gs_hangup
;
rs_callout_driver
=
rs_driver
;
rs_callout_driver
.
name
=
"cua"
;
rs_callout_driver
.
major
=
TTYAUX_MAJOR
;
rs_callout_driver
.
subtype
=
SERIAL_TYPE_CALLOUT
;
if
((
error
=
tty_register_driver
(
&
rs_driver
)))
{
if
((
error
=
tty_register_driver
(
&
rs_driver
)))
{
printk
(
KERN_ERR
"Couldn't register serial driver, error = %d
\n
"
,
printk
(
KERN_ERR
"Couldn't register serial driver, error = %d
\n
"
,
error
);
error
);
return
1
;
return
1
;
}
}
if
((
error
=
tty_register_driver
(
&
rs_callout_driver
)))
{
tty_unregister_driver
(
&
rs_driver
);
printk
(
KERN_ERR
"Couldn't register callout driver, error = %d
\n
"
,
error
);
return
1
;
}
func_exit
();
return
0
;
return
0
;
}
}
...
...
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