mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
rtc: mpfs: switch to devm_device_init_wakeup
Switch to devm_device_init_wakeup to avoid a possible memory leak as wakeup is never disabled. Link: https://lore.kernel.org/r/20250303223600.1135142-1-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
27b2fcbd6b
commit
de404fc196
1 changed files with 1 additions and 1 deletions
|
|
@ -266,7 +266,7 @@ static int mpfs_rtc_probe(struct platform_device *pdev)
|
|||
writel(prescaler, rtcdev->base + PRESCALER_REG);
|
||||
dev_info(&pdev->dev, "prescaler set to: %lu\n", prescaler);
|
||||
|
||||
device_init_wakeup(&pdev->dev, true);
|
||||
devm_device_init_wakeup(&pdev->dev);
|
||||
ret = devm_pm_set_wake_irq(&pdev->dev, wakeup_irq);
|
||||
if (ret)
|
||||
dev_err(&pdev->dev, "failed to enable irq wake\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue