Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58efbb5e authored by Vaisakh Murali's avatar Vaisakh Murali Committed by Daniel Jacob Chittoor
Browse files

drivers/rtc: disable wake when rtc registration fails



The wakeup is triggered but it is never removed.

Change-Id: Ic17eb0e56d5c65ac22c44315f9504652ad19a814
Signed-off-by: default avatarVaisakh Murali <mvaisakh@statixos.com>
parent a83d7944
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -543,6 +543,7 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev)
	if (IS_ERR(rtc_dd->rtc)) {
		dev_err(&pdev->dev, "%s: RTC registration failed (%ld)\n",
			__func__, PTR_ERR(rtc_dd->rtc));
		device_init_wakeup(&pdev->dev, 0);
		return PTR_ERR(rtc_dd->rtc);
	}