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
a0034050
Commit
a0034050
authored
Aug 22, 2003
by
Daniele Bellucci
Committed by
Greg Kroah-Hartman
Aug 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: PATCH 8/19 Audit usb_register/usb_serial_register under divers/usb/serial
parent
16c3bf07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
drivers/usb/serial/ipaq.c
drivers/usb/serial/ipaq.c
+12
-3
No files found.
drivers/usb/serial/ipaq.c
View file @
a0034050
...
...
@@ -570,16 +570,25 @@ static void ipaq_shutdown(struct usb_serial *serial)
static
int
__init
ipaq_init
(
void
)
{
int
retval
;
spin_lock_init
(
&
write_list_lock
);
usb_serial_register
(
&
ipaq_device
);
retval
=
usb_serial_register
(
&
ipaq_device
);
if
(
retval
)
goto
failed_usb_serial_register
;
info
(
DRIVER_DESC
" "
DRIVER_VERSION
);
if
(
vendor
)
{
ipaq_id_table
[
0
].
idVendor
=
vendor
;
ipaq_id_table
[
0
].
idProduct
=
product
;
}
usb_register
(
&
ipaq_driver
);
retval
=
usb_register
(
&
ipaq_driver
);
if
(
retval
)
goto
failed_usb_register
;
return
0
;
failed_usb_register:
usb_serial_deregister
(
&
ipaq_device
);
failed_usb_serial_register:
return
retval
;
}
...
...
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