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
2e4bd50f
Commit
2e4bd50f
authored
Jan 16, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: fix up compiler warnings and other stuff in the emi62 driver.
parent
6ef4be17
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7468 additions
and
7466 deletions
+7468
-7466
drivers/usb/misc/emi62.c
drivers/usb/misc/emi62.c
+8
-8
drivers/usb/misc/emi62_fw_s.h
drivers/usb/misc/emi62_fw_s.h
+7460
-7458
No files found.
drivers/usb/misc/emi62.c
View file @
2e4bd50f
...
@@ -97,7 +97,7 @@ static int emi62_load_firmware (struct usb_device *dev)
...
@@ -97,7 +97,7 @@ static int emi62_load_firmware (struct usb_device *dev)
__u32
addr
;
/* Address to write */
__u32
addr
;
/* Address to write */
__u8
*
buf
;
__u8
*
buf
;
printk
(
"adi-emi:
load_firmware
\n
"
);
dev_dbg
(
&
dev
->
dev
,
"
load_firmware
\n
"
);
buf
=
kmalloc
(
FW_LOAD_SIZE
,
GFP_KERNEL
);
buf
=
kmalloc
(
FW_LOAD_SIZE
,
GFP_KERNEL
);
if
(
!
buf
)
{
if
(
!
buf
)
{
err
(
"%s - error loading firmware: error = %d"
,
__FUNCTION__
,
-
ENOMEM
);
err
(
"%s - error loading firmware: error = %d"
,
__FUNCTION__
,
-
ENOMEM
);
...
@@ -235,7 +235,7 @@ static int emi62_load_firmware (struct usb_device *dev)
...
@@ -235,7 +235,7 @@ static int emi62_load_firmware (struct usb_device *dev)
wraperr:
wraperr:
kfree
(
buf
);
kfree
(
buf
);
printk
(
"adi-emi:
Error
\n
"
);
dev_err
(
&
dev
->
dev
,
"
Error
\n
"
);
return
err
;
return
err
;
}
}
...
@@ -249,7 +249,7 @@ MODULE_DEVICE_TABLE (usb, id_table);
...
@@ -249,7 +249,7 @@ MODULE_DEVICE_TABLE (usb, id_table);
static
int
emi62_probe
(
struct
usb_interface
*
intf
,
const
struct
usb_device_id
*
id
)
static
int
emi62_probe
(
struct
usb_interface
*
intf
,
const
struct
usb_device_id
*
id
)
{
{
struct
usb_device
*
dev
=
interface_to_usbdev
(
intf
);
struct
usb_device
*
dev
=
interface_to_usbdev
(
intf
);
printk
(
"adi-emi:
emi62_probe
\n
"
);
dev_dbg
(
&
intf
->
dev
,
"
emi62_probe
\n
"
);
info
(
"%s start"
,
__FUNCTION__
);
info
(
"%s start"
,
__FUNCTION__
);
...
@@ -275,11 +275,11 @@ struct usb_driver emi62_driver = {
...
@@ -275,11 +275,11 @@ struct usb_driver emi62_driver = {
static
int
__init
emi62_init
(
void
)
static
int
__init
emi62_init
(
void
)
{
{
i
f
(
usb_register
(
&
emi62_driver
)
<
0
)
{
i
nt
retval
;
printk
(
"adi-emi: registration failed
\n
"
);
retval
=
usb_register
(
&
emi62_driver
);
}
else
{
if
(
retval
)
return
0
;
printk
(
KERN_ERR
"adi-emi: registration failed
\n
"
)
;
}
return
retval
;
}
}
static
void
__exit
emi62_exit
(
void
)
static
void
__exit
emi62_exit
(
void
)
...
...
drivers/usb/misc/emi62_fw_s.h
View file @
2e4bd50f
This diff is collapsed.
Click to expand it.
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