Commit 9fc5986f authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Greg Kroah-Hartman
Browse files

usb: typec: tcpci: Fix wakeup source leaks on device unbind

parent a592e067
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -536,7 +536,10 @@ static int max_tcpci_probe(struct i2c_client *client)
		return dev_err_probe(&client->dev, ret,
				     "IRQ initialization failed\n");

	device_init_wakeup(chip->dev, true);
	ret = devm_device_init_wakeup(chip->dev);
	if (ret)
		return dev_err_probe(chip->dev, ret, "Failed to init wakeup\n");

	return 0;
}