Commit fd37695d authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Lee Jones
Browse files

mfd: max8925: Fix wakeup source leaks on device unbind



Device can be unbound, so driver must also release memory for the wakeup
source.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250406-mfd-device-wakekup-leak-v1-6-318e14bdba0a@linaro.org


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent a59a56cc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -201,6 +201,7 @@ static void max8925_remove(struct i2c_client *client)
	struct max8925_chip *chip = i2c_get_clientdata(client);

	max8925_device_exit(chip);
	device_init_wakeup(&client->dev, false);
	i2c_unregister_device(chip->adc);
	i2c_unregister_device(chip->rtc);
}