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
e0ca312a
Commit
e0ca312a
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 10/19 Audit usb_register/usb_serial_register under divers/usb/serial
parent
0f32ea83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
5 deletions
+26
-5
drivers/usb/serial/keyspan.c
drivers/usb/serial/keyspan.c
+26
-5
No files found.
drivers/usb/serial/keyspan.c
View file @
e0ca312a
...
...
@@ -197,15 +197,36 @@ struct keyspan_port_private {
/* Functions used by new usb-serial code. */
static
int
__init
keyspan_init
(
void
)
{
usb_serial_register
(
&
keyspan_pre_device
);
usb_serial_register
(
&
keyspan_1port_device
);
usb_serial_register
(
&
keyspan_2port_device
);
usb_serial_register
(
&
keyspan_4port_device
);
usb_register
(
&
keyspan_driver
);
int
retval
;
retval
=
usb_serial_register
(
&
keyspan_pre_device
);
if
(
retval
)
goto
failed_pre_device_register
;
retval
=
usb_serial_register
(
&
keyspan_1port_device
);
if
(
retval
)
goto
failed_1port_device_register
;
retval
=
usb_serial_register
(
&
keyspan_2port_device
);
if
(
retval
)
goto
failed_2port_device_register
;
retval
=
usb_serial_register
(
&
keyspan_4port_device
);
if
(
retval
)
goto
failed_4port_device_register
;
retval
=
usb_register
(
&
keyspan_driver
);
if
(
retval
)
goto
failed_usb_register
;
info
(
DRIVER_VERSION
":"
DRIVER_DESC
);
return
0
;
failed_usb_register:
usb_serial_deregister
(
&
keyspan_4port_device
);
failed_4port_device_register:
usb_serial_deregister
(
&
keyspan_2port_device
);
failed_2port_device_register:
usb_serial_deregister
(
&
keyspan_1port_device
);
failed_1port_device_register:
usb_serial_deregister
(
&
keyspan_pre_device
);
failed_pre_device_register:
return
retval
;
}
static
void
__exit
keyspan_exit
(
void
)
...
...
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