]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/rtc/rtc-puv3.c
Merge tag 'xfs-5.4-fixes-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[linux.git] / drivers / rtc / rtc-puv3.c
index 63b9e73fb97d7d584761751feb42b603b79f3a79..89ff713163dd57711d518e49958a014f63b95e1b 100644 (file)
@@ -186,16 +186,12 @@ static int puv3_rtc_probe(struct platform_device *pdev)
 
        /* find the IRQs */
        puv3_rtc_tickno = platform_get_irq(pdev, 1);
-       if (puv3_rtc_tickno < 0) {
-               dev_err(&pdev->dev, "no irq for rtc tick\n");
+       if (puv3_rtc_tickno < 0)
                return -ENOENT;
-       }
 
        puv3_rtc_alarmno = platform_get_irq(pdev, 0);
-       if (puv3_rtc_alarmno < 0) {
-               dev_err(&pdev->dev, "no irq for alarm\n");
+       if (puv3_rtc_alarmno < 0)
                return -ENOENT;
-       }
 
        dev_dbg(&pdev->dev, "PKUnity_rtc: tick irq %d, alarm irq %d\n",
                 puv3_rtc_tickno, puv3_rtc_alarmno);
@@ -239,10 +235,8 @@ static int puv3_rtc_probe(struct platform_device *pdev)
        /* register RTC and exit */
        rtc->ops = &puv3_rtcops;
        ret = rtc_register_device(rtc);
-       if (ret) {
-               dev_err(&pdev->dev, "cannot attach rtc\n");
+       if (ret)
                goto err_nortc;
-       }
 
        /* platform setup code should have handled this; sigh */
        if (!device_can_wakeup(&pdev->dev))