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