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
be8647d2
Commit
be8647d2
authored
Jun 16, 2017
by
Corey Minyard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipmi:ssif: Use i2c_adapter_id instead of adapter->nr
Signed-off-by:
Corey Minyard
<
cminyard@mvista.com
>
parent
1adc9105
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
drivers/char/ipmi/ipmi_ssif.c
drivers/char/ipmi/ipmi_ssif.c
+3
-2
No files found.
drivers/char/ipmi/ipmi_ssif.c
View file @
be8647d2
...
...
@@ -1096,7 +1096,7 @@ static int inc_usecount(void *send_info)
{
struct
ssif_info
*
ssif_info
=
send_info
;
if
(
!
i2c_get_adapter
(
ssif_info
->
client
->
adapter
->
nr
))
if
(
!
i2c_get_adapter
(
i2c_adapter_id
(
ssif_info
->
client
->
adapter
)
))
return
-
ENODEV
;
i2c_use_client
(
ssif_info
->
client
);
...
...
@@ -1665,7 +1665,8 @@ static int ssif_probe(struct i2c_client *client, const struct i2c_device_id *id)
{
unsigned
int
thread_num
;
thread_num
=
((
ssif_info
->
client
->
adapter
->
nr
<<
8
)
|
thread_num
=
((
i2c_adapter_id
(
ssif_info
->
client
->
adapter
)
<<
8
)
|
ssif_info
->
client
->
addr
);
init_completion
(
&
ssif_info
->
wake_thread
);
ssif_info
->
thread
=
kthread_run
(
ipmi_ssif_thread
,
ssif_info
,
...
...
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