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

Commit 969f70ae authored by Prerna Kalla's avatar Prerna Kalla
Browse files

msm: ice: Rectify return value from suspend function



This changes ensures that correct value is returned from suspend
function when timeout occurs and ice is still busy.

Change-Id: Ic93ae41126d6146423d8203dcec5dbcbb6a52739
Signed-off-by: default avatarPrerna Kalla <prernak@codeaurora.org>
parent cfea929f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -802,7 +802,7 @@ static int qcom_ice_remove(struct platform_device *pdev)
static int  qcom_ice_suspend(struct platform_device *pdev)
{
	struct ice_device *ice_dev;
	int ret;
	int ret = 0;

	ice_dev = (struct ice_device *)platform_get_drvdata(pdev);

@@ -818,7 +818,7 @@ static int qcom_ice_suspend(struct platform_device *pdev)
			pr_err("%s: Suspend ICE during an ongoing operation\n",
				__func__);
			atomic_set(&ice_dev->is_ice_suspended, 0);
			return ret;
			return -ETIME;
		}
	}