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
442fb428
Commit
442fb428
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 18/19 Audit usb_register/usb_serial_register under divers/usb/serial
parent
2ca290d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
drivers/usb/serial/visor.c
drivers/usb/serial/visor.c
+16
-4
No files found.
drivers/usb/serial/visor.c
View file @
442fb428
...
...
@@ -956,7 +956,7 @@ static void visor_set_termios (struct usb_serial_port *port, struct termios *old
static
int
__init
visor_init
(
void
)
{
int
i
;
int
i
,
retval
;
/* Only if parameters were passed to us */
if
((
vendor
>
0
)
&&
(
product
>
0
))
{
struct
usb_device_id
usb_dev_temp
[]
=
...
...
@@ -983,12 +983,24 @@ static int __init visor_init (void)
info
(
"Adding Palm OS protocol 4.x support for unknown device: 0x%x/0x%x"
,
vendor
,
product
);
}
usb_serial_register
(
&
handspring_device
);
usb_serial_register
(
&
clie_3_5_device
);
usb_register
(
&
visor_driver
);
retval
=
usb_serial_register
(
&
handspring_device
);
if
(
retval
)
goto
failed_handspring_register
;
retval
=
usb_serial_register
(
&
clie_3_5_device
);
if
(
retval
)
goto
failed_clie_3_5_register
;
retval
=
usb_register
(
&
visor_driver
);
if
(
retval
)
goto
failed_usb_register
;
info
(
DRIVER_DESC
" "
DRIVER_VERSION
);
return
0
;
failed_usb_register:
usb_serial_deregister
(
&
clie_3_5_device
);
failed_clie_3_5_register:
usb_serial_deregister
(
&
handspring_device
);
failed_handspring_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