Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Krzysztof Kozlowski and committed by
Lee Jones
d905d06e 2c8294c9

+1
+1
drivers/mfd/max14577.c
··· 456 456 { 457 457 struct max14577 *max14577 = i2c_get_clientdata(i2c); 458 458 459 + device_init_wakeup(max14577->dev, false); 459 460 mfd_remove_devices(max14577->dev); 460 461 regmap_del_irq_chip(max14577->irq, max14577->irq_data); 461 462 if (max14577->dev_type == MAXIM_DEVICE_TYPE_MAX77836)