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
nexedi
linux
Commits
7c187711
Commit
7c187711
authored
May 07, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TTY: remove usb-serial sysfs dev file as it is now redundant.
parent
c2c6f3ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
drivers/usb/serial/bus.c
drivers/usb/serial/bus.c
+1
-16
No files found.
drivers/usb/serial/bus.c
View file @
7c187711
...
@@ -23,18 +23,6 @@
...
@@ -23,18 +23,6 @@
#include "usb-serial.h"
#include "usb-serial.h"
static
ssize_t
show_dev
(
struct
device
*
dev
,
char
*
buf
)
{
struct
usb_serial_port
*
port
=
to_usb_serial_port
(
dev
);
dev_t
base
;
port
=
to_usb_serial_port
(
dev
);
base
=
MKDEV
(
SERIAL_TTY_MAJOR
,
port
->
number
);
return
sprintf
(
buf
,
"%04x
\n
"
,
base
);
}
static
DEVICE_ATTR
(
dev
,
S_IRUGO
,
show_dev
,
NULL
);
static
int
usb_serial_device_match
(
struct
device
*
dev
,
struct
device_driver
*
drv
)
static
int
usb_serial_device_match
(
struct
device
*
dev
,
struct
device_driver
*
drv
)
{
{
struct
usb_serial_device_type
*
driver
;
struct
usb_serial_device_type
*
driver
;
...
@@ -88,10 +76,7 @@ static int usb_serial_device_probe (struct device *dev)
...
@@ -88,10 +76,7 @@ static int usb_serial_device_probe (struct device *dev)
}
}
minor
=
port
->
number
;
minor
=
port
->
number
;
tty_register_device
(
&
usb_serial_tty_driver
,
minor
,
dev
);
tty_register_device
(
&
usb_serial_tty_driver
,
minor
);
device_create_file
(
dev
,
&
dev_attr_dev
);
dev_info
(
&
port
->
serial
->
dev
->
dev
,
dev_info
(
&
port
->
serial
->
dev
->
dev
,
"%s converter now attached to ttyUSB%d (or usb/tts/%d for devfs)
\n
"
,
"%s converter now attached to ttyUSB%d (or usb/tts/%d for devfs)
\n
"
,
driver
->
name
,
minor
,
minor
);
driver
->
name
,
minor
,
minor
);
...
...
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