Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FPGA Configuration Space
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FPGA Configuration Space
Commits
85d9d94b
Commit
85d9d94b
authored
Nov 17, 2011
by
Manohar Vanga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simulation: fix return values of fake_wb_bus functions
Signed-off-by:
Manohar Vanga
<
manohar.vanga@cern.ch
>
parent
3ea2c092
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
fake_wb_bus.c
simulation/fake_wb_bus.c
+5
-4
No files found.
simulation/fake_wb_bus.c
View file @
85d9d94b
...
...
@@ -60,6 +60,7 @@ struct wb_bus fake_wb_bus = {
static
int
fake_wbbus_probe
(
struct
device
*
dev
)
{
int
ret
;
char
fwname
[
64
];
/*
...
...
@@ -71,13 +72,13 @@ static int fake_wbbus_probe(struct device *dev)
* file.
*/
sprintf
(
fwname
,
"fakespec-%04x-%04x"
,
spec_vendor
,
spec_device
);
if
(
request_firmware
(
&
wb_fw
,
fwname
,
dev
)
)
{
if
(
(
ret
=
request_firmware
(
&
wb_fw
,
fwname
,
dev
))
!=
0
)
{
pr_err
(
KBUILD_MODNAME
": failed to load "
"firmware
\"
%s
\"\n
"
,
fwname
);
return
-
1
;
return
ret
;
}
if
(
wb_register_bus
(
&
fake_wb_bus
)
<
0
)
{
if
(
(
ret
=
wb_register_bus
(
&
fake_wb_bus
)
)
<
0
)
{
goto
bus_register_fail
;
}
...
...
@@ -85,7 +86,7 @@ static int fake_wbbus_probe(struct device *dev)
bus_register_fail:
release_firmware
(
wb_fw
);
return
-
ENODEV
;
return
ret
;
}
static
void
fake_wbbus_release
(
struct
device
*
dev
)
...
...
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