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

Commit 5fd241be authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: qpnp-rtc: Enable the node of wakealarm"

parents fb0947d4 340e5b70
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2015, 2017-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2015, 2017-2019,The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -597,7 +597,7 @@ static int qpnp_rtc_probe(struct platform_device *pdev)
		rtc_ops = &qpnp_rtc_rw_ops;

	dev_set_drvdata(&pdev->dev, rtc_dd);

	device_init_wakeup(&pdev->dev, 1);
	/* Register the RTC device */
	rtc_dd->rtc = rtc_device_register("qpnp_rtc", &pdev->dev,
					  rtc_ops, THIS_MODULE);
@@ -627,6 +627,7 @@ static int qpnp_rtc_probe(struct platform_device *pdev)
fail_req_irq:
	rtc_device_unregister(rtc_dd->rtc);
fail_rtc_enable:
	device_init_wakeup(&pdev->dev, 0);
	dev_set_drvdata(&pdev->dev, NULL);

	return rc;