Skip to content

Commit fd37695

Browse files
krzklag-linaro
authored andcommitted
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: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20250406-mfd-device-wakekup-leak-v1-6-318e14bdba0a@linaro.org Signed-off-by: Lee Jones <lee@kernel.org>
1 parent a59a56c commit fd37695

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mfd/max8925-i2c.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ static void max8925_remove(struct i2c_client *client)
201201
struct max8925_chip *chip = i2c_get_clientdata(client);
202202

203203
max8925_device_exit(chip);
204+
device_init_wakeup(&client->dev, false);
204205
i2c_unregister_device(chip->adc);
205206
i2c_unregister_device(chip->rtc);
206207
}

0 commit comments

Comments
 (0)