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
237f100a
Commit
237f100a
authored
May 07, 2003
by
Greg Kroah-Hartman
Committed by
Linus Torvalds
May 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB: change core to use devfs_mk_cdev() instead of devfs_register()
parent
f8b65e50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
drivers/usb/core/file.c
drivers/usb/core/file.c
+1
-2
No files found.
drivers/usb/core/file.c
View file @
237f100a
...
...
@@ -160,8 +160,7 @@ int usb_register_dev(struct usb_interface *intf,
/* handle the devfs registration */
snprintf
(
name
,
DEVICE_ID_SIZE
,
class_driver
->
name
,
minor
-
minor_base
);
devfs_register
(
NULL
,
name
,
0
,
USB_MAJOR
,
minor
,
class_driver
->
mode
,
class_driver
->
fops
,
NULL
);
devfs_mk_cdev
(
MKDEV
(
USB_MAJOR
,
minor
),
class_driver
->
mode
,
name
);
/* create a usb class device for this usb interface */
memset
(
&
intf
->
class_dev
,
0x00
,
sizeof
(
struct
class_device
));
...
...
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