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
ca113d22
Commit
ca113d22
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 6/19 Audit usb_register/usb_serial_register under divers/usb/serial
parent
f50f6c8b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
7 deletions
+28
-7
drivers/usb/serial/io_edgeport.c
drivers/usb/serial/io_edgeport.c
+28
-7
No files found.
drivers/usb/serial/io_edgeport.c
View file @
ca113d22
...
@@ -3051,15 +3051,36 @@ static void edge_shutdown (struct usb_serial *serial)
...
@@ -3051,15 +3051,36 @@ static void edge_shutdown (struct usb_serial *serial)
* edgeport_init
* edgeport_init
* This is called by the module subsystem, or on startup to initialize us
* This is called by the module subsystem, or on startup to initialize us
****************************************************************************/
****************************************************************************/
int
__init
edgeport_init
(
void
)
static
int
__init
edgeport_init
(
void
)
{
{
usb_serial_register
(
&
edgeport_1port_device
);
int
retval
;
usb_serial_register
(
&
edgeport_2port_device
);
retval
=
usb_serial_register
(
&
edgeport_1port_device
);
usb_serial_register
(
&
edgeport_4port_device
);
if
(
retval
)
usb_serial_register
(
&
edgeport_8port_device
);
goto
failed_1port_device_register
;
usb_register
(
&
io_driver
);
retval
=
usb_serial_register
(
&
edgeport_2port_device
);
if
(
retval
)
goto
failed_2port_device_register
;
retval
=
usb_serial_register
(
&
edgeport_4port_device
);
if
(
retval
)
goto
failed_4port_device_register
;
retval
=
usb_serial_register
(
&
edgeport_8port_device
);
if
(
retval
)
goto
failed_8port_device_register
;
retval
=
usb_register
(
&
io_driver
);
if
(
retval
)
goto
failed_usb_register
;
info
(
DRIVER_DESC
" "
DRIVER_VERSION
);
info
(
DRIVER_DESC
" "
DRIVER_VERSION
);
return
0
;
return
0
;
failed_usb_register:
usb_serial_deregister
(
&
edgeport_8port_device
);
failed_8port_device_register:
usb_serial_deregister
(
&
edgeport_4port_device
);
failed_4port_device_register:
usb_serial_deregister
(
&
edgeport_2port_device
);
failed_2port_device_register:
usb_serial_deregister
(
&
edgeport_1port_device
);
failed_1port_device_register:
return
retval
;
}
}
...
@@ -3068,7 +3089,7 @@ int __init edgeport_init(void)
...
@@ -3068,7 +3089,7 @@ int __init edgeport_init(void)
* edgeport_exit
* edgeport_exit
* Called when the driver is about to be unloaded.
* Called when the driver is about to be unloaded.
****************************************************************************/
****************************************************************************/
void
__exit
edgeport_exit
(
void
)
static
void
__exit
edgeport_exit
(
void
)
{
{
usb_deregister
(
&
io_driver
);
usb_deregister
(
&
io_driver
);
usb_serial_deregister
(
&
edgeport_1port_device
);
usb_serial_deregister
(
&
edgeport_1port_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