]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/rtc/rtc-bd70528.c
Merge tag 'for-linus-5.4-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / drivers / rtc / rtc-bd70528.c
index f9bdd555e1a2c61ecfc600ddd03a482fd77fe3f3..7744333b0f4019a98413f4d1f09aa165c4f4b51a 100644 (file)
@@ -416,11 +416,8 @@ static int bd70528_probe(struct platform_device *pdev)
        bd_rtc->dev = &pdev->dev;
 
        irq = platform_get_irq_byname(pdev, "bd70528-rtc-alm");
-
-       if (irq < 0) {
-               dev_err(&pdev->dev, "Failed to get irq\n");
+       if (irq < 0)
                return irq;
-       }
 
        platform_set_drvdata(pdev, bd_rtc);
 
@@ -479,11 +476,7 @@ static int bd70528_probe(struct platform_device *pdev)
                return ret;
        }
 
-       ret = rtc_register_device(rtc);
-       if (ret)
-               dev_err(&pdev->dev, "Registering RTC failed\n");
-
-       return ret;
+       return rtc_register_device(rtc);
 }
 
 static struct platform_driver bd70528_rtc = {