Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd00ce5a authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Fix an issue when MSM SSR feature is not enabled



Commit cd7f4158 ("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: default avatarYue Ma <yuem@codeaurora.org>
parent 2e621fdf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
}