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
ed94724b
Commit
ed94724b
authored
Dec 17, 2015
by
James Bottomley
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'mkp-scsi/4.4/scsi-fixes' into fixes
parents
5e103356
1c69d3b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
drivers/scsi/scsi_pm.c
drivers/scsi/scsi_pm.c
+10
-10
No files found.
drivers/scsi/scsi_pm.c
View file @
ed94724b
...
...
@@ -219,13 +219,13 @@ static int sdev_runtime_suspend(struct device *dev)
struct
scsi_device
*
sdev
=
to_scsi_device
(
dev
);
int
err
=
0
;
if
(
pm
&&
pm
->
runtime_suspend
)
{
err
=
blk_pre_runtime_suspend
(
sdev
->
request_queue
);
if
(
err
)
return
err
;
if
(
pm
&&
pm
->
runtime_suspend
)
err
=
pm
->
runtime_suspend
(
dev
);
blk_post_runtime_suspend
(
sdev
->
request_queue
,
err
);
}
return
err
;
}
...
...
@@ -248,11 +248,11 @@ static int sdev_runtime_resume(struct device *dev)
const
struct
dev_pm_ops
*
pm
=
dev
->
driver
?
dev
->
driver
->
pm
:
NULL
;
int
err
=
0
;
if
(
pm
&&
pm
->
runtime_resume
)
{
blk_pre_runtime_resume
(
sdev
->
request_queue
);
if
(
pm
&&
pm
->
runtime_resume
)
err
=
pm
->
runtime_resume
(
dev
);
blk_post_runtime_resume
(
sdev
->
request_queue
,
err
);
}
return
err
;
}
...
...
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