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
5aacaa7c
Commit
5aacaa7c
authored
May 18, 2003
by
Kay Sievers
Committed by
Anton Blanchard
May 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: usb-skeleton compile fix
usb-skelteon doesn't compile after recent changes.
parent
5c20c511
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
drivers/usb/usb-skeleton.c
drivers/usb/usb-skeleton.c
+7
-7
No files found.
drivers/usb/usb-skeleton.c
View file @
5aacaa7c
...
@@ -126,8 +126,8 @@ static int skel_ioctl (struct inode *inode, struct file *file, unsigned int cmd
...
@@ -126,8 +126,8 @@ static int skel_ioctl (struct inode *inode, struct file *file, unsigned int cmd
static
int
skel_open
(
struct
inode
*
inode
,
struct
file
*
file
);
static
int
skel_open
(
struct
inode
*
inode
,
struct
file
*
file
);
static
int
skel_release
(
struct
inode
*
inode
,
struct
file
*
file
);
static
int
skel_release
(
struct
inode
*
inode
,
struct
file
*
file
);
static
int
skel_probe
(
struct
usb_interface
*
int
f
,
const
struct
usb_device_id
*
id
);
static
int
skel_probe
(
struct
usb_interface
*
int
erface
,
const
struct
usb_device_id
*
id
);
static
void
skel_disconnect
(
struct
usb_interface
*
int
f
);
static
void
skel_disconnect
(
struct
usb_interface
*
int
erface
);
static
void
skel_write_bulk_callback
(
struct
urb
*
urb
,
struct
pt_regs
*
regs
);
static
void
skel_write_bulk_callback
(
struct
urb
*
urb
,
struct
pt_regs
*
regs
);
...
@@ -163,7 +163,7 @@ static struct file_operations skel_fops = {
...
@@ -163,7 +163,7 @@ static struct file_operations skel_fops = {
* usb class driver info in order to get a minor number from the usb core,
* usb class driver info in order to get a minor number from the usb core,
* and to have the device registered with devfs and the driver core
* and to have the device registered with devfs and the driver core
*/
*/
static
struct
usb_class_driver
skel
l
_class
=
{
static
struct
usb_class_driver
skel_class
=
{
.
name
=
"usb/skel%d"
,
.
name
=
"usb/skel%d"
,
.
fops
=
&
skel_fops
,
.
fops
=
&
skel_fops
,
.
mode
=
S_IFCHR
|
S_IRUSR
|
S_IWUSR
|
S_IRGRP
|
S_IWGRP
|
S_IROTH
,
.
mode
=
S_IFCHR
|
S_IRUSR
|
S_IWUSR
|
S_IRGRP
|
S_IWGRP
|
S_IROTH
,
...
@@ -515,7 +515,7 @@ static int skel_probe(struct usb_interface *interface, const struct usb_device_i
...
@@ -515,7 +515,7 @@ static int skel_probe(struct usb_interface *interface, const struct usb_device_i
return
-
ENODEV
;
return
-
ENODEV
;
}
}
retval
=
usb_register_dev
(
int
f
,
&
skel_class
);
retval
=
usb_register_dev
(
int
erface
,
&
skel_class
);
if
(
retval
)
{
if
(
retval
)
{
/* something prevented us from registering this driver */
/* something prevented us from registering this driver */
err
(
"Not able to get a minor for this device."
);
err
(
"Not able to get a minor for this device."
);
...
@@ -533,7 +533,7 @@ static int skel_probe(struct usb_interface *interface, const struct usb_device_i
...
@@ -533,7 +533,7 @@ static int skel_probe(struct usb_interface *interface, const struct usb_device_i
init_MUTEX
(
&
dev
->
sem
);
init_MUTEX
(
&
dev
->
sem
);
dev
->
udev
=
udev
;
dev
->
udev
=
udev
;
dev
->
interface
=
interface
;
dev
->
interface
=
interface
;
dev
->
minor
=
int
f
->
minor
;
dev
->
minor
=
int
erface
->
minor
;
/* set up the endpoint information */
/* set up the endpoint information */
/* check out the endpoints */
/* check out the endpoints */
...
@@ -610,7 +610,7 @@ static int skel_probe(struct usb_interface *interface, const struct usb_device_i
...
@@ -610,7 +610,7 @@ static int skel_probe(struct usb_interface *interface, const struct usb_device_i
dev
=
NULL
;
dev
=
NULL
;
exit_minor:
exit_minor:
usb_deregister_dev
(
int
f
,
&
skel_class
);
usb_deregister_dev
(
int
erface
,
&
skel_class
);
exit:
exit:
if
(
dev
)
{
if
(
dev
)
{
...
@@ -654,7 +654,7 @@ static void skel_disconnect(struct usb_interface *interface)
...
@@ -654,7 +654,7 @@ static void skel_disconnect(struct usb_interface *interface)
minor
=
dev
->
minor
;
minor
=
dev
->
minor
;
/* give back our minor */
/* give back our minor */
usb_deregister_dev
(
int
f
,
&
skel_class
);
usb_deregister_dev
(
int
erface
,
&
skel_class
);
/* terminate an ongoing write */
/* terminate an ongoing write */
if
(
atomic_read
(
&
dev
->
write_busy
))
{
if
(
atomic_read
(
&
dev
->
write_busy
))
{
...
...
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