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

Commit 268f4b8f authored by Venkata Rao Kakani's avatar Venkata Rao Kakani
Browse files

rtc: control default alarm wake up capability



enable & disable rtc alarm wake up capability based on
default parameter passed from device tree.

Change-Id: Iae9fc089206377cdef31dcb75b7a77922af371f1
Signed-off-by: default avatarVenkata Rao Kakani <vkakani@codeaurora.org>
parent 28f1b2a9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -546,6 +546,9 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev)
		return rc;
	}

	if (of_property_read_bool(pdev->dev.of_node, "disable-alarm-wakeup"))
		device_set_wakeup_capable(&pdev->dev, false);

	dev_dbg(&pdev->dev, "Probe success !!\n");

	return 0;