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
7334aeed
Commit
7334aeed
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 11/19 Audit usb_register/usb_serial_register under divers/usb/serial
parent
e0ca312a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
4 deletions
+27
-4
drivers/usb/serial/keyspan_pda.c
drivers/usb/serial/keyspan_pda.c
+27
-4
No files found.
drivers/usb/serial/keyspan_pda.c
View file @
7334aeed
...
...
@@ -876,16 +876,39 @@ static struct usb_serial_device_type keyspan_pda_device = {
static
int
__init
keyspan_pda_init
(
void
)
{
usb_serial_register
(
&
keyspan_pda_device
);
int
retval
;
retval
=
usb_serial_register
(
&
keyspan_pda_device
);
if
(
retval
)
goto
failed_pda_register
;
#ifdef KEYSPAN
usb_serial_register
(
&
keyspan_pda_fake_device
);
retval
=
usb_serial_register
(
&
keyspan_pda_fake_device
);
if
(
retval
)
goto
failed_pda_fake_register
;
#endif
#ifdef XIRCOM
usb_serial_register
(
&
xircom_pgs_fake_device
);
retval
=
usb_serial_register
(
&
xircom_pgs_fake_device
);
if
(
retval
)
goto
failed_xircom_register
;
#endif
usb_register
(
&
keyspan_pda_driver
);
retval
=
usb_register
(
&
keyspan_pda_driver
);
if
(
retval
)
goto
failed_usb_register
;
info
(
DRIVER_DESC
" "
DRIVER_VERSION
);
return
0
;
failed_usb_register:
#ifdef XIRCOM
usb_serial_deregister
(
&
xircom_pgs_fake_device
);
failed_xircom_register:
#endif
/* XIRCOM */
#ifdef KEYSPAN
usb_serial_deregister
(
&
keyspan_pda_fake_device
);
#endif
#ifdef KEYSPAN
failed_pda_fake_register:
#endif
usb_serial_deregister
(
&
keyspan_pda_device
);
failed_pda_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