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

Commit 1c71c796 authored by Vatsal Bucha's avatar Vatsal Bucha
Browse files

soc: qcom: Cancel workqueue and call pm_relax during fsa4480_remove



During fsa4480_remove cancel scheduled work for usbc_analog_en
and call pm_relax.

Change-Id: I8e09ce56a5c38cf4c7f576edaae761d29ae8322e
Signed-off-by: default avatarVatsal Bucha <vbucha@codeaurora.org>
parent fd40f97b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -413,7 +413,8 @@ static int fsa4480_remove(struct i2c_client *i2c)
		return -EINVAL;

	fsa4480_usbc_update_settings(fsa_priv, 0x18, 0x98);

	cancel_work(&fsa_priv->usbc_analog_work);
	pm_relax(fsa_priv->dev);
	/* deregister from PMI */
	power_supply_unreg_notifier(&fsa_priv->psy_nb);
	power_supply_put(fsa_priv->usb_psy);