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:
Yue Ma 2020-12-04 16:56:36 -08:00
commit dd00ce5aa3

View file

@ -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;
}