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
2ca290d6
Commit
2ca290d6
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 17/19 Audit usb_register/usb_serial_register under divers/usb/serial
parent
bcd32492
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
drivers/usb/serial/safe_serial.c
drivers/usb/serial/safe_serial.c
+11
-3
No files found.
drivers/usb/serial/safe_serial.c
View file @
2ca290d6
...
@@ -422,7 +422,7 @@ static struct usb_serial_device_type safe_device = {
...
@@ -422,7 +422,7 @@ static struct usb_serial_device_type safe_device = {
static
int
__init
safe_init
(
void
)
static
int
__init
safe_init
(
void
)
{
{
int
i
;
int
i
,
retval
;
info
(
DRIVER_VERSION
" "
DRIVER_AUTHOR
);
info
(
DRIVER_VERSION
" "
DRIVER_AUTHOR
);
info
(
DRIVER_DESC
);
info
(
DRIVER_DESC
);
...
@@ -441,10 +441,18 @@ static int __init safe_init (void)
...
@@ -441,10 +441,18 @@ static int __init safe_init (void)
}
}
}
}
usb_serial_register
(
&
safe_device
);
retval
=
usb_serial_register
(
&
safe_device
);
usb_register
(
&
safe_driver
);
if
(
retval
)
goto
failed_usb_serial_register
;
retval
=
usb_register
(
&
safe_driver
);
if
(
retval
)
goto
failed_usb_register
;
return
0
;
return
0
;
failed_usb_register:
usb_serial_deregister
(
&
safe_device
);
failed_usb_serial_register:
return
retval
;
}
}
static
void
__exit
safe_exit
(
void
)
static
void
__exit
safe_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