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
542ea6c3
Commit
542ea6c3
authored
Jan 16, 2006
by
Alan Cox
Committed by
Linus Torvalds
Jan 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Remove unused code from rio_linux.c
Signed-off-by:
Linus Torvalds
<
torvalds@osdl.org
>
parent
283c9d54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
60 deletions
+0
-60
drivers/char/rio/rio_linux.c
drivers/char/rio/rio_linux.c
+0
-60
No files found.
drivers/char/rio/rio_linux.c
View file @
542ea6c3
...
...
@@ -132,16 +132,6 @@ more than 512 ports.... */
*/
#define IRQ_RATE_LIMIT 200
#if 0
/* Not implemented */
/*
* The following defines are mostly for testing purposes. But if you need
* some nice reporting in your syslog, you can define them also.
*/
#define RIO_REPORT_FIFO
#define RIO_REPORT_OVERRUN
#endif
/* These constants are derived from SCO Source */
static
struct
Conf
...
...
@@ -573,21 +563,6 @@ static void rio_shutdown_port(void *ptr)
PortP
=
(
struct
Port
*
)
ptr
;
PortP
->
gs
.
tty
=
NULL
;
#if 0
port->gs.flags &= ~GS_ACTIVE;
if (!port->gs.tty) {
rio_dprintk(RIO_DBUG_TTY, "No tty.\n");
return;
}
if (!port->gs.tty->termios) {
rio_dprintk(RIO_DEBUG_TTY, "No termios.\n");
return;
}
if (port->gs.tty->termios->c_cflag & HUPCL) {
rio_setsignals(port, 0, 0);
}
#endif
func_exit
();
}
...
...
@@ -663,11 +638,6 @@ static int rio_ioctl(struct tty_struct *tty, struct file *filp, unsigned int cmd
rc
=
0
;
switch
(
cmd
)
{
#if 0
case TIOCGSOFTCAR:
rc = put_user(((tty->termios->c_cflag & CLOCAL) ? 1 : 0), (unsigned int *) arg);
break;
#endif
case
TIOCSSOFTCAR
:
if
((
rc
=
get_user
(
ival
,
(
unsigned
int
*
)
arg
))
==
0
)
{
tty
->
termios
->
c_cflag
=
(
tty
->
termios
->
c_cflag
&
~
CLOCAL
)
|
(
ival
?
CLOCAL
:
0
);
...
...
@@ -709,36 +679,6 @@ static int rio_ioctl(struct tty_struct *tty, struct file *filp, unsigned int cmd
if
(
access_ok
(
VERIFY_READ
,
(
void
*
)
arg
,
sizeof
(
struct
serial_struct
)))
rc
=
gs_setserial
(
&
PortP
->
gs
,
(
struct
serial_struct
*
)
arg
);
break
;
#if 0
/*
* note: these IOCTLs no longer reach here. Use
* tiocmset/tiocmget driver methods instead. The
* #if 0 disablement predates this comment.
*/
case TIOCMGET:
rc = -EFAULT;
if (access_ok(VERIFY_WRITE, (void *) arg, sizeof(unsigned int))) {
rc = 0;
ival = rio_getsignals(port);
put_user(ival, (unsigned int *) arg);
}
break;
case TIOCMBIS:
if ((rc = get_user(ival, (unsigned int *) arg)) == 0) {
rio_setsignals(port, ((ival & TIOCM_DTR) ? 1 : -1), ((ival & TIOCM_RTS) ? 1 : -1));
}
break;
case TIOCMBIC:
if ((rc = get_user(ival, (unsigned int *) arg)) == 0) {
rio_setsignals(port, ((ival & TIOCM_DTR) ? 0 : -1), ((ival & TIOCM_RTS) ? 0 : -1));
}
break;
case TIOCMSET:
if ((rc = get_user(ival, (unsigned int *) arg)) == 0) {
rio_setsignals(port, ((ival & TIOCM_DTR) ? 1 : 0), ((ival & TIOCM_RTS) ? 1 : 0));
}
break;
#endif
default:
rc
=
-
ENOIOCTLCMD
;
break
;
...
...
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