Loading drivers/rtc/qpnp-rtc.c +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 Loading Loading @@ -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); Loading @@ -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"); Loading @@ -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; Loading Loading
drivers/rtc/qpnp-rtc.c +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 Loading Loading @@ -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); Loading @@ -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"); Loading @@ -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; Loading