Unverified Commit a5d699b6 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12653 usb: typec: tipd: Free IRQ only if it was requested before

parents 5b8789bd 5b280051
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -907,6 +907,8 @@ static void tps6598x_remove(struct i2c_client *client)

	if (!client->irq)
		cancel_delayed_work_sync(&tps->wq_poll);
	else
		devm_free_irq(tps->dev, client->irq, tps);

	tps6598x_disconnect(tps, 0);
	typec_unregister_port(tps->port);