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

Commit ff6c828c authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: Cancel workqueue and call pm_relax during fsa4480_remove"

parents 4d3f6994 1c71c796
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -389,7 +389,8 @@ static int fsa4480_remove(struct i2c_client *i2c)
		return -EINVAL;
		return -EINVAL;


	fsa4480_usbc_update_settings(fsa_priv, 0x18, 0x98);
	fsa4480_usbc_update_settings(fsa_priv, 0x18, 0x98);

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