mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
cnss2: Fix an issue when MSM SSR feature is not enabled
Commit cd7f415867 ("cnss2: Wait for power up complete during
SSR restart") breaks the compilation when MSM SSR feature is
not enabled. Fix it properly in this change.
Change-Id: I9e16174a4063b037d50f890eccb0983bd68a54a8
Signed-off-by: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
parent
2e621fdfeb
commit
dd00ce5aa3
1 changed files with 3 additions and 0 deletions
|
|
@ -1044,6 +1044,8 @@ static void cnss_recovery_work_handler(struct work_struct *work)
|
|||
#else
|
||||
static void cnss_recovery_work_handler(struct work_struct *work)
|
||||
{
|
||||
int ret;
|
||||
|
||||
struct cnss_plat_data *plat_priv =
|
||||
container_of(work, struct cnss_plat_data, recovery_work);
|
||||
|
||||
|
|
@ -1057,6 +1059,7 @@ static void cnss_recovery_work_handler(struct work_struct *work)
|
|||
ret = cnss_bus_dev_powerup(plat_priv);
|
||||
if (ret)
|
||||
__pm_relax(plat_priv->recovery_ws);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue