Skip to content

Commit 2eaa299

Browse files
rtc: pm8xxx: 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-3-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 252f49c commit 2eaa299

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/rtc/rtc-pm8xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev)
503503

504504
platform_set_drvdata(pdev, rtc_dd);
505505

506-
device_init_wakeup(&pdev->dev, true);
506+
devm_device_init_wakeup(&pdev->dev);
507507

508508
rtc_dd->rtc = devm_rtc_allocate_device(&pdev->dev);
509509
if (IS_ERR(rtc_dd->rtc))

0 commit comments

Comments
 (0)