diff options
author | Luis R. Rodriguez <mcgrof@kernel.org> | 2017-11-20 09:45:32 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-29 11:07:00 +0100 |
commit | 59b6d859ff0e36872396afdd3d853036408a87dc (patch) | |
tree | 59470a3ee2f40a02b4c92c56aa22dc72c627f98b /sound | |
parent | a67e503b67a8b0d99c3fa96ae6c254ca5d8bb2ba (diff) |
firmware: fix capturing errors on fw_cache_init() on early init
register_pm_notifier() can technically fail, caputure this.
Note that register_syscore_ops() cannot fail given it just
adds an element to a linked list. This has been broken since
v3.7. Chances of this failing however are slim.
To improve code readability move the code folded under CONFIG_PM_SLEEP
into a helper.
Fixes: 07646d9c0938d ("firmware loader: cache devices firmware during suspend/resume cycle")
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions