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
c2c6f3ac
Commit
c2c6f3ac
authored
May 07, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TTY: changes based on tty_register_device() paramater change.
parent
cc6670c2
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
15 deletions
+15
-15
arch/mips/au1000/common/serial.c
arch/mips/au1000/common/serial.c
+4
-4
drivers/char/dz.c
drivers/char/dz.c
+2
-2
drivers/char/hvc_console.c
drivers/char/hvc_console.c
+1
-1
drivers/char/ip2main.c
drivers/char/ip2main.c
+2
-2
drivers/char/vt.c
drivers/char/vt.c
+1
-1
drivers/serial/core.c
drivers/serial/core.c
+1
-1
drivers/tc/zs.c
drivers/tc/zs.c
+2
-2
drivers/usb/class/bluetty.c
drivers/usb/class/bluetty.c
+1
-1
drivers/usb/class/cdc-acm.c
drivers/usb/class/cdc-acm.c
+1
-1
No files found.
arch/mips/au1000/common/serial.c
View file @
c2c6f3ac
...
...
@@ -2681,8 +2681,8 @@ static int __init rs_init(void)
(
state
->
flags
&
ASYNC_FOURPORT
)
?
" FourPort"
:
""
,
state
->
port
,
state
->
irq
,
uart_config
[
state
->
type
].
name
);
tty_register_device
(
&
serial_driver
,
state
->
line
);
tty_register_device
(
&
callout_driver
,
state
->
line
);
tty_register_device
(
&
serial_driver
,
state
->
line
,
NULL
);
tty_register_device
(
&
callout_driver
,
state
->
line
,
NULL
);
}
return
0
;
}
...
...
@@ -2769,8 +2769,8 @@ int register_serial(struct serial_struct *req)
state
->
iomem_base
?
"iomem"
:
"port"
,
state
->
iomem_base
?
(
unsigned
long
)
state
->
iomem_base
:
state
->
port
,
state
->
irq
,
uart_config
[
state
->
type
].
name
);
tty_register_device
(
&
serial_driver
,
state
->
line
);
tty_register_device
(
&
callout_driver
,
state
->
line
);
tty_register_device
(
&
serial_driver
,
state
->
line
,
NULL
);
tty_register_device
(
&
callout_driver
,
state
->
line
,
NULL
);
return
state
->
line
+
SERIAL_DEV_OFFSET
;
}
...
...
drivers/char/dz.c
View file @
c2c6f3ac
...
...
@@ -1426,8 +1426,8 @@ int __init dz_init(void)
printk
(
"ttyS%02d at 0x%08x (irq = %d)
\n
"
,
info
->
line
,
info
->
port
,
SERIAL
);
tty_register_device
(
&
serial_driver
,
info
->
line
);
tty_register_device
(
&
callout_driver
,
info
->
line
);
tty_register_device
(
&
serial_driver
,
info
->
line
,
NULL
);
tty_register_device
(
&
callout_driver
,
info
->
line
,
NULL
);
}
/* Reset the chip */
...
...
drivers/char/hvc_console.c
View file @
c2c6f3ac
...
...
@@ -283,7 +283,7 @@ int __init hvc_init(void)
for
(
i
=
0
;
i
<
hvc_driver
.
num
;
i
++
)
{
hvc_struct
[
i
].
lock
=
SPIN_LOCK_UNLOCKED
;
hvc_struct
[
i
].
index
=
i
;
tty_register_device
(
&
hvc_driver
,
i
);
tty_register_device
(
&
hvc_driver
,
i
,
NULL
);
}
if
(
tty_register_driver
(
&
hvc_driver
))
...
...
drivers/char/ip2main.c
View file @
c2c6f3ac
...
...
@@ -902,10 +902,10 @@ ip2_loadmain(int *iop, int *irqp, unsigned char *firmware, int firmsize)
{
tty_register_device
(
&
ip2_tty_driver
,
j
+
ABS_BIGGEST_BOX
*
(
box
+
i
*
ABS_MAX_BOXES
));
(
box
+
i
*
ABS_MAX_BOXES
)
,
NULL
);
tty_register_device
(
&
ip2_callout_driver
,
j
+
ABS_BIGGEST_BOX
*
(
box
+
i
*
ABS_MAX_BOXES
));
(
box
+
i
*
ABS_MAX_BOXES
)
,
NULL
);
}
}
}
...
...
drivers/char/vt.c
View file @
c2c6f3ac
...
...
@@ -2666,7 +2666,7 @@ static void __init con_init_devfs (void)
int
i
;
for
(
i
=
0
;
i
<
console_driver
.
num
;
i
++
)
tty_register_device
(
&
console_driver
,
i
);
tty_register_device
(
&
console_driver
,
i
,
NULL
);
}
/*
...
...
drivers/serial/core.c
View file @
c2c6f3ac
...
...
@@ -2242,7 +2242,7 @@ int uart_add_one_port(struct uart_driver *drv, struct uart_port *port)
* Register the port whether it's detected or not. This allows
* setserial to be used to alter this ports parameters.
*/
tty_register_device
(
drv
->
tty_driver
,
port
->
line
);
tty_register_device
(
drv
->
tty_driver
,
port
->
line
,
NULL
);
out:
up
(
&
port_sem
);
...
...
drivers/tc/zs.c
View file @
c2c6f3ac
...
...
@@ -1971,8 +1971,8 @@ int __init zs_init(void)
printk
(
"ttyS%02d at 0x%08x (irq = %d)"
,
info
->
line
,
info
->
port
,
info
->
irq
);
printk
(
" is a Z85C30 SCC
\n
"
);
tty_register_device
(
&
serial_driver
,
info
->
line
);
tty_register_device
(
&
callout_driver
,
info
->
line
);
tty_register_device
(
&
serial_driver
,
info
->
line
,
NULL
);
tty_register_device
(
&
callout_driver
,
info
->
line
,
NULL
);
}
...
...
drivers/usb/class/bluetty.c
View file @
c2c6f3ac
...
...
@@ -1198,7 +1198,7 @@ static int usb_bluetooth_probe (struct usb_interface *intf,
bluetooth
,
endpoint
->
bInterval
);
/* initialize the devfs nodes for this device and let the user know what bluetooths we are bound to */
tty_register_device
(
&
bluetooth_tty_driver
,
minor
);
tty_register_device
(
&
bluetooth_tty_driver
,
minor
,
&
intf
->
dev
);
info
(
"Bluetooth converter now attached to ttyUB%d (or usb/ttub/%d for devfs)"
,
minor
,
minor
);
bluetooth_table
[
minor
]
=
bluetooth
;
...
...
drivers/usb/class/cdc-acm.c
View file @
c2c6f3ac
...
...
@@ -653,7 +653,7 @@ static int acm_probe (struct usb_interface *intf,
usb_driver_claim_interface
(
&
acm_driver
,
acm
->
iface
+
0
,
acm
);
usb_driver_claim_interface
(
&
acm_driver
,
acm
->
iface
+
1
,
acm
);
tty_register_device
(
&
acm_tty_driver
,
minor
);
tty_register_device
(
&
acm_tty_driver
,
minor
,
&
intf
->
dev
);
acm_table
[
minor
]
=
acm
;
usb_set_intfdata
(
intf
,
acm
);
...
...
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