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
39890072
Commit
39890072
authored
Aug 29, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bbc_envctrl: Fix build errors from bbc_i2c OF conversion.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
ae05f87e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/sbus/char/bbc_envctrl.c
drivers/sbus/char/bbc_envctrl.c
+3
-3
No files found.
drivers/sbus/char/bbc_envctrl.c
View file @
39890072
...
...
@@ -451,7 +451,7 @@ static void attach_one_temp(struct bbc_i2c_bus *bp, struct of_device *op,
if
(
!
tp
)
return
;
tp
->
client
=
bbc_i2c_attach
(
op
);
tp
->
client
=
bbc_i2c_attach
(
bp
,
op
);
if
(
!
tp
->
client
)
{
kfree
(
tp
);
return
;
...
...
@@ -496,7 +496,7 @@ static void attach_one_fan(struct bbc_i2c_bus *bp, struct of_device *op,
if
(
!
fp
)
return
;
fp
->
client
=
bbc_i2c_attach
(
op
);
fp
->
client
=
bbc_i2c_attach
(
bp
,
op
);
if
(
!
fp
->
client
)
{
kfree
(
fp
);
return
;
...
...
@@ -529,7 +529,7 @@ int bbc_envctrl_init(struct bbc_i2c_bus *bp)
int
fan_index
=
0
;
int
devidx
=
0
;
while
((
op
=
bbc_i2c_getdev
(
devidx
++
))
!=
NULL
)
{
while
((
op
=
bbc_i2c_getdev
(
bp
,
devidx
++
))
!=
NULL
)
{
if
(
!
strcmp
(
op
->
node
->
name
,
"temperature"
))
attach_one_temp
(
bp
,
op
,
temp_index
++
);
if
(
!
strcmp
(
op
->
node
->
name
,
"fan-control"
))
...
...
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