Skip to content

Commit d905d06

Browse files
krzklag-linaro
authored andcommitted
mfd: max14577: 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-3-318e14bdba0a@linaro.org Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 2c8294c commit d905d06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mfd/max14577.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ static void max14577_i2c_remove(struct i2c_client *i2c)
456456
{
457457
struct max14577 *max14577 = i2c_get_clientdata(i2c);
458458

459+
device_init_wakeup(max14577->dev, false);
459460
mfd_remove_devices(max14577->dev);
460461
regmap_del_irq_chip(max14577->irq, max14577->irq_data);
461462
if (max14577->dev_type == MAXIM_DEVICE_TYPE_MAX77836)

0 commit comments

Comments
 (0)