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

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

Merge "qpnp-rtc.c : Generate the node wakealarm for RTC"

parents 75b23729 f2b6aaf2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2012-2015,2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2015,2018, 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
@@ -593,7 +593,7 @@ static int qpnp_rtc_probe(struct spmi_device *spmi)
		qpnp_rtc_ops.set_time = qpnp_rtc_set_time;

	dev_set_drvdata(&spmi->dev, rtc_dd);

	device_init_wakeup(&spmi->dev, 1);
	/* Register the RTC device */
	rtc_dd->rtc = rtc_device_register("qpnp_rtc", &spmi->dev,
						&qpnp_rtc_ops, THIS_MODULE);
@@ -613,7 +613,6 @@ static int qpnp_rtc_probe(struct spmi_device *spmi)
		goto fail_req_irq;
	}

	device_init_wakeup(&spmi->dev, 1);
	enable_irq_wake(rtc_dd->rtc_alarm_irq);

	dev_dbg(&spmi->dev, "Probe success !!\n");
@@ -623,6 +622,7 @@ static int qpnp_rtc_probe(struct spmi_device *spmi)
fail_req_irq:
	rtc_device_unregister(rtc_dd->rtc);
fail_rtc_enable:
	device_init_wakeup(&spmi->dev, 0);
	dev_set_drvdata(&spmi->dev, NULL);

	return rc;